Hi all,
I'm trying to assign a function to a function pointer, but I'm having
trouble with the syntax. Specifically I'm trying to assign WinDrawLine to a
pointer.
Here's what I have:
void (*drawFn) (short, short, short, short); // declare the function pointer
*drawFn = WinDrawLine; // assign the function to the pointer
The compiler says there's an error in the second line and gives me "illegal
use of inline function." The same happens when I try
drawFn = &WinDrawLine;
and
drawFn = WinDrawLine;
Could someone tell me what the correct syntax is?
Thanks in advance.
Luca
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html