The compiler in CodeWarrior for Palm OS Platform 7.0 is a lot stricter about
implicit type conversions than previous compilers. This was designed to help
keep you from shooting yourself in the foot. You can still pass it in however,
just add an explicit cast to (short*) in the call for the appropriate
parameters.

-- jkl

----- Original Message -----
From: "jose luis garcia" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, March 28, 2001 9:45 AM
Subject: problem with SysBatteryInfo in codewarrior 7.0


> Hello.
>
> I'm programming with codewarrior 7.0 ,and I have one problem with the a
> function "SysBatteryInfo".
>
> The program's source is:
>   ........
>    SysBatteryKind  kind;
>    UInt16  voltage, warn, critical, timeout;
>    UInt8   percent;
>    Boolean plugged;
>
>    voltage = SysBatteryInfo(false, &warn, &critical,
>                       &timeout, &kind, &plugged, &percent);
>
>   .......
>
> When I make with codewarrior 7.0,I have this error
>
> "  Error : illegal implicit conversion from 'unsigned short *' to
>    'short *'        &timeout,&kind,&plugged,&percent);"
>
> Why this error of conversion? if In lite codewarrior I haven't this error..
>
>
>
>
>
>
>
>
>
>
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/tech/support/forums/
>


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

Reply via email to