"Ola Theander" <[EMAIL PROTECTED]> wrote in message news:65394@palm-dev-forum... > > Hi Ben. > > Thanks for your answer. Is it only sysAppLaunchCmdNormalLaunch that have > normal global variable initialization? I don't think the Palm OS SDK is very > clear on this matter, or I havn't looked at the right place. Where can I > find more detailed information about what is allowed under the different > launch codes?
Look in SystemMgr.h. There is a flags parameter to your PilotMain function. If the bit in the flags parameter defined by sysAppLaunchFlagNewGlobals is set, then you have access to globals in the launch. Otherwise, you don't. > I've read about the new feature in CW8 called expanded mode. Would this mode > allow the use of virtual function tables when the launch code is > sysAppLaunchCmdSystemReset, i.e. the code in my example would run fine? Out of the box, no. However, I have a runtime library fix that will be posted at the Metrowerks site soon that allows virtual functions in non-global launches. You have to call a small utility function after you determine the launch code, then virtual tables will be available. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
