"Iehab AL Rassan" <[EMAIL PROTECTED]> wrote in message
news:46530@palm-dev-forum...
>
> I am using code warrior light and I am trying to use SysBatteryInfo
function
> that shows the percentage of the remaining battery; unfortunately,
> percentage parameter is UInt8 and the compiler could not recognize
this data
> type, it considers it as undefined data type. If I define the
percentage
> parameter as UInt16 or int, it gives me compilation error :
> Error : cannot convert
> 'unsigned short *' to
> 'unsigned char *'
> Program1.c line 569 NULL, NULL,percentP) ;
>
> The Prototype of the function is as follows :
> UInt16 SysBatteryInfo (Boolean set, UInt16* warnThresholdP, UInt16*
> criticalThresholdP, UInt16* maxTicksP, SysBatteryKind* kindP, Boolean*
> pluggedIn UInt8* percentP)
Are you using CW Lite with the 3.5 SDK? Only the 3.5 SDK defines the
various IntXX and UIntXX types which you're seeing in the documentation.
If you have a stock CW Lite, then that ships with the 3.1 SDK, which
uses a different set of datatypes.
--
Ben Combee, [EMAIL PROTECTED]
Techwood Broadcasting Foundation, Austin Bureau
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/