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

Reply via email to