I'm working on an application that must run on a Treo 650 with both the old
NVFS (5.4.5) and the new NVFS (5.4.7), however I'm having trouble
programmatically finding the third component of those OS version numbers.
Here is the code I'm using:
UInt32 romVersion = 0xFFFFFFFF;
if (errNone == FtrGet(sysFtrCreator, sysFtrNumROMVersion, &romVersion))
{
UInt16 major = sysGetROMVerMajor(romVersion);
UInt16 minor = sysGetROMVerMinor(romVersion);
UInt16 fix = sysGetROMVerFix(romVersion);
UInt16 stage = sysGetROMVerStage(romVersion);
UInt16 build = sysGetROMVerBuild(romVersion);
}
I seem to be getting the exact same results running on both my Sprint Treo
650's (one has OS 5.4.5 and the other OS 5.4.7)
In the above code, the numbers returned are:
romVersion = 88092695 (printed with a %lu)
major = 5
minor = 4
fix = 0
stage = 3
build = 23
The "fix" parameter is the one that I would guess should contain the third
version component. I hope that I'm just making a stupid mistake here. Any
tips would be appreciated.
Thanks in advance,
Ryan
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/