Function pointers are held as 4 bytes, so they can be used across
segments.   I've even had excellent results passing function pointers
to shared libraries!  (And thanks the the people who helped me 
on that a few months ago)

As for the format, just go look up K&R.  Using function pointers and
arrays of function pointers is not for the faint-hearted!

Roger Stringer
Marietta Systems, Inc.

----------------------------------------------------------------------

>Subject: How to use function pointers in metrowerks?
>From: DIAMOND JEFF <[EMAIL PROTECTED]>
>Date: Fri, 11 Aug 2000 16:05:25 -0400

>This seems like somthing that should be somewhere in the codewarrior
>documentation, but I can't find it...

>I have two questions:

>(1) In a Palm project, can you store function pointers to another
>function which may lie in a different segment?

>(2) What syntax do you use to define a function pointer?  The notation
>below didn't compile:



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