I'm trying to launch one of my applications from another using SysAppLaunch command: dbID = DmFinfDatabase(0, "BoilCalc"); err = SysAppLaunch(0, dbID, 0, sysAppLaunchCmdNormalLaunch, (void*) data, &result);
but I get an error saying the "application acsessed a global variable after PilotMain was called with a launch code that does not support global variables..."
Could someone help me. What Am I missing? Also, I cannot use SysAppSwitch because I MUST return to the calling application.
SysAppLaunch doesn't do what you want. Palm OS only supports one application being run at a time with global variable support, and to get that for your second app, you must use SysUIAppSwitch.
Remember, if the second app returns to the OS without having setup a "follow-on" app, your original app will be relaunched. This is the mechanism used to launch Clipper back in the Palm OS 3.5 days on the Palm VIIx -- you'd SysUIAppSwitch to it, and when the user hit the back button, Clipper would end and your app would be restarted.
--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
