Hey! I am having a little trouble with
getting what kind of battery the user has.

This is my code.

  UInt8 *percentP;
                           SysBatteryKind *kindP;
                             char *PercentStr;
                             char *Percents;
                            UInt16 Kind;
                            Kind=SysBatteryInfoV20 (false,NULL,NULL,NULL,kindP,false);
                             PercentStr=StrIToA (Percents, Kind->kindP);
                            fld=(FieldPtr) GetObjectPtr(MainOutputField);
                            FldSetTextPtr(fld,Kind.kindP);
                           
                            FldDrawField(fld);



My error is here though
PercentStr=StrIToA (Percents, Kind->kindP);

It says Kind isn't an array.

How do I access kindP and display it as a character string? Thanks!



-- 
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