If your app checks the OS version at run-time, be warned that:

  FtrGet(sysFtrCreator, sysFtrNumROMVersion, &romVersion);

will return 0x04000000 on a Palm OS 4.0 ROM, not 0x04003000. This is true
for both debug and release ROMs. The bug was apparently fixed in Palm OS
4.1. So rather than comparing with:

  sysMakeROMVersion(4, 0, 0, sysROMStageRelease, 0) = 0x04003000

you should compare with:

  sysMakeROMVersion(4, 0, 0, sysROMStageDevelopment, 0) = 0x04000000

Or you can use:

  ((sysGetROMVerMajor(romVersion) == 4) &&
   (sysGetROMVerMinor(romVersion) == 0)

or similar logic to extract the relevant bits of the ROM version feature,
ignoring the incorrect bits.
--
Danny @ PalmSource

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to