> From: Seeley, Steve E [mailto:[EMAIL PROTECTED]]
> It's complaining about call back function identifier.
> Here's the source code line causing the warning message;
>    TblSetCustomDrawProcedure(BatchesTable, 0, DrawBatchesData);
> Here's the call back functions prototype;
>    static void DrawBatchesData(MemPtr, UInt16, UInt16, RectanglePtr);

The warning is correct.  You are passing a function of this type:

    void (*)( void *, UInt16, UInt16, RectangleType * )

but TblSetCustomDrawProcedure requires a function of this type:

    void (*)( void *, Int16, Int16, RectangleType * )

See the difference?  Nothing Palm-specific here, just basic C.

-slj-


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