Kenneth Mankoff wrote:
> Is it possible to have a hack that also has a
> pilotmain() function? Maybe it is not necessary, so I
> will explain what I want to do, and maybe there is
> another way to do it.

Sure.  I've done it.  Basically, you just compile a Palm OS application as
normal, except you set the database type to 'HACK' and link in the patch
routines.

> If a hack as a pilotMain() (which means a code segment
> #0, I think), does that mean it has an Icon and is
> launchable via the system launcher, in addition to
> being accessible through X-Master?

No.  The Launcher displays (non-hidden) application ('appl') databases (and
databases that have the "Launchable" bit set, but they still need an
application database with the same creator).   Therefore, to launch such a
database, you'd need to call SysAppLaunch on it explicitly.

I don't think it'll do what you want--which is to receive the
sysAppLaunchCmdSystemReset launch code automatically.  AFAIK, the system
automatically broadcasts launch codes only to certain database types, such as
applications and preference panels.


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to