hi riyon,
i also used the windraw method to print romVersion value but it shows some
correpted value, how to display it?
i used like this
WinDrawChars((Char *) &romVersion,4, 20, 30);
Date: Thu, 10 Apr 2008 23:14:05 -0700
From: [EMAIL PROTECTED]
To: [email protected]
Subject: Re: how to find OS name, version, devicename?
On 4/10/08, Karthik Jaganathan <[EMAIL PROTECTED]> wrote:
hi Le,
thanks for ur reply, i used the method to find os version,
UInt32 romVersion;
miscErr = FtrGet(sysFtrCreator, sysFtrNumROMVersion, &romVersion );
if i print the romVersion it doesn't show the result, similarly memory details,
but deviceid, companyid shows exact result, It's a hex value, though I forget
the exact format.You can, however, compare the OS version with a required one,
using the macro sysMakeRomVersion
if (romVersion >= sysMakeROMVersion(5,0,0,sysROMStageRelease,0))
//OS 5 or above
Le i am having one more doubt, can i show the company name(like palm inc),
device name(like treo 680) instead of deviceid(D053), companyid(hspr).
If you keep a table in your code to cross-reference it to.
Thanks with,
karthik
> From: [EMAIL PROTECTED]
> To: [email protected]
> Subject: re: how to find OS name, version, devicename?
> Date: Thu, 10 Apr 2008 07:21:43 -0700
>
> karthik wrote:
>
> > if i install my application into some mobile devices, and if i
> > click a button, it should open a form, and it shows the
> > corresponding device name, OS name, and OS version, memory
> > used etc, is there any api for that please find for me,
> > i searched palm os reference manual but i cant find it please help
> > for me.
>
> OS FtrGet( sysFtrCreator, sysFtrNumROMVersion, &romVersion );
> Memory MemHeapFreeBytes( 0, &gFreeHeap, &feature );
> Device FtrGet( sysFtrCreator, sysFtrNumOEMDeviceID, &feature );
>
> See also http://www.mobilegeographics.com/dev/devices.php
>
>
> Luc Le Blanc
>
> --
> For information on using the ACCESS Developer Forums, or to unsubscribe,
> please see http://www.access-company.com/developers/forums/
Windows Live Messenger : Get connected, share yourself, make a difference the
way you chat. Check it out!
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/
--
Thanks and best regards,
Ryan Rix
TamsPalm - The PalmOS Blog
Jasmine Bowden - Class of 2009, Marc Rasmussen - Class of 2008, Erica
Sheffey - Class of 2009, Rest in peace.
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/
_________________________________________________________________
Tried the new MSN Messenger? It’s cool! Download now.
http://messenger.msn.com/Download/Default.aspx?mkt=en-in
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/