> From: Walter Levy
>
> "illegal implicit conversion from
> 'void (unsigned short, structRectangleType *, char **)'
> to 'void (*) (short, struct RectangleType *, char **)'"
>

The compiler doesn't want to convert an unsigned short to a short.

> My function prototype is:
> static void MainListDraw(UInt16 itemNum, RectangleType *bounds, char
> **ItemsText);
>
> [snip]
>
>       LstSetDrawFunction(lstP,MainListDraw);   <-- ERROR HERE
>

Change your MainListDraw so the first parameter is an Int16.  I think the
3.5 docs are wrong when they describe the function prototype in the
"Application-defined Function" section on page 311 of "Palm OS SDK
Reference - Preliminary modified 1/7/00"  (document number 3003-002).  (I
haven't checked any other versions.)


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