i did both the technique that u said,that is convert the romVersion into Char *, and StrIToH method, but still it doesnt produce proper result, actually what the result should come? Thanks with karthik
Subject: RE: how to find OS name, version, devicename? Date: Fri, 11 Apr 2008 09:41:04 +0100 From: [EMAIL PROTECTED] To: palm-dev-forum@news.palmos.com romVersion is a UInt32, you'll need to convert it to a string Char*, and pass that to WinDrawChars. You can use StrIToH. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Karthik Jaganathan Sent: 11 April 2008 07:38 To: Palm Developer Forum Subject: RE: how to find OS name, version, devicename? 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: palm-dev-forum@news.palmos.com 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: palm-dev-forum@news.palmos.com > 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/ Windows Live Spaces : Help your online world come to life, add 500 photos a month. Try it! -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ _________________________________________________________________ Fashion Channel : Want to know what’s the latest in the fashion world ? You have it all here on MSN Fashion. http://lifestyle.in.msn.com/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/