> From: Paul Nevai [mailto:[EMAIL PROTECTED]]
> #####################################################
> [Segment 1] __must__ contain [...] any code that is executed
> when PilotMain() receives a launch command other than
> sysAppLaunchCmdNormalLaunch.
> #####################################################
> I have both a sysAppLaunchCmdNormalLaunch and a sysAppLaunchCmdGoTo
> in my project, and, basically, both need the very same functions
> Does that mean that I can't multi-segment my application because
> sysAppLaunchCmdGoTo requires that all my functions be in Segment #1?
No, that doc is inaccurate. The sysAppLaunchCmdGoTo launch code does come
with globals set up, just like NormalLaunch. The GoTo launch is actually
sort of a variant of NormalLaunch, where it invokes your program to display
your full user interface. So it works pretty much the same as NormalLaunch.
You can use multiple segments with it.
The following launch codes are also very similar to NormalLaunch and come
with globals, though the docs don't explicitly say so:
sysAppLaunchCmdPanelCalledFromApp
sysAppLaunchCmdReturnFromPanel
> Also, please tell me which "MSL Runtime Palm OS (xx).lib" I
> should use if I use C and not C++?
> MSL Runtime Palm OS (4i).Lib or MSL Runtime Palm OS (2i).Lib
It doesn't matter if you are using C or C++. The "(Xi)" part refers to the
size of the 'int' data type which is configured in the 68K Processor panel
in your project. The library must match the compiler setting. You should
almost certainly stick to the default of 2-byte ints, which requires the
"(2i)" version of the library.
-slj-
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html