If you've decided not to support 1.0 devices, switch to the
"default" app in your startup:
if (theRomVersion < inRequiredVersion)
AppLaunchWithCommand(sysFileCDefaultApp,
sysAppLaunchCmdNormalLaunch, NULL);
This is from Christopher Hunt's Teenee library and I think
the built-in apps do the same thing. The comments in the
code indicate 1.0 devices will do exactly what you're
seeing otherwise.
-- Paul
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On
> Behalf Of McCollister,
> Mike
> Sent: Thursday, February 24, 2000 8:34 AM
> To: Palm Developer Forum
> Subject: Exit PilotMain on PalmOS 1.0 problem
>
>
> Hi,
>
> I have some code that checks for a PalmOS
> version at startup. If the PalmOS
> version is not right, then I display a FrmAlert
> and exit PilotMain with a
> return of 1. This works for everything except
> for PalmOS 1.0. After I press
> OK on the FrmAlert (stating that it needs PalmOS
> 3.5 or greater to run) the
> form just pops up again. Do I need to return
> something other than "1" to get
> this to work on PalmOS 1.0?
>
> Here is my current PilotMain code
>
> UInt32 PilotMain(UInt16 cmd, MemPtr cmdPBP,
> UInt16 launchFlags)
> {
> UInt16 error;
>
> if(cmd == sysAppLaunchCmdNormalLaunch) {
> error = StartApplication(); // return 1 if
> not the right Palm OS
> version
> if(error)
> return error;
>
> EventLoop();
>
> StopApplication();
> }
>
> return 0;
> }
>
>
> Thanks,
>
> Mike McCollister
>
> --
> For information on using the Palm Developer
> Forums, or to unsubscribe, please see
> http://www.palm.com/devzone/mailinglists.html
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html