It seems You have longer data type...
6553975 is 0x00640177, where top word is 0x0064=100

Look in API reference for correct type...

Hynek Sladky


Durgesh Trivedi napsal(a):
I m trying to display the battery status in percent on a label that how much 
battery is charged means if it is 100 % then i show 100% on label else 
according  to the level of the battery.

SysBatteryInfo(false,NULL, &criticalThresholdP,NULL,NULL,NULL,&percent);give  
the value in variable  percent  but the value it return is 6553975  when the status is 
100%
so how do i calculate it as 100 means wat r the other calculation i have to 
make more to show it actual 100.
And wat is this 6553975 i dont understand.
And the similar thing happen why i get the voltage of the battery  so wat r the 
calculation other to be made in both the cases.
thanks.

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

Reply via email to