> > Can I initialize them?  Since the event
> > handling architecture in PalmOS does not allow for including call data
in
> > event handlers, it is pretty difficult to get around using global
> variables.
>
> I'm curious... Not being much of a Palm programmer, perhaps the answer is
> obvious, but which launch codes result in the application entering an
event
> loop?  The obvious one -- sysAppLaunchCmdNormalLaunch -- supports globals.
> Which of the ones that doesn't support globals would lead an application
to
> eventually enter an event handler?

These are some of the launch commands where an app responds to a non-global
launch and may need to put up a UI where there will be an event loop:

sysAppLaunchCmdLookup (for interactive lookups)
sysAppLaunchCmdDisplayAlarm
sysAppLaunchCmdAddRecord (if the adder requests editing)
sysAppLaunchCmdURLParams (for Clipper "palmcall" requests)
sysAppLaunchCmdExgPreview

Plus, if you're making a shared library which does UI stuff, the shared lib
can't use globals either for the same reason (although the mechanism for
allocating a struct for lib instance variables is OK, IMHO).

--
Ben Combee
Veriprise Wireless <http://www.veriprise.com>



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

Reply via email to