> From: Luca [mailto:[EMAIL PROTECTED]]
> I'm trying to assign WinDrawLine to a [function] pointer.

That's not possible using the method in your code.  Palm OS API functions
are not called by traditional linkage, but rather through the 68K trap
mechanism.  This means the compiler/linker has no way to take the function's
address.

There are a couple different things you could try:

(1) Post a more detailed description of what you are trying to accomplish.
You may get some good suggestions for a totally different way to achieve the
same thing.

(2) Use the SysGetTrapAddress API to fetch the actual function address,
which you _can_ assign to the function pointer in your code.  But note that
this happens at run time instead of build time.

(3) Write a wrapper function (MyWinDrawLine) and then you can take the
address of _it_ in your code at build time.

-slj-


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to