> How can I write code in CW to call a shared library that I don't know
> about
> at compile time?
>
> Say I want to call the 'n'th function (in the dispatch table) in a shared
> lib
> from my program, but I'm going to get the name/creator of the library
> and the specific entry from external input (i.e. the user tells me, etc.)?
>
> All examples I've seen with shared libs have involved compiling in the
> specific
> header for the shared lib,i.e.:
>
> Extern MSLErr MSLOpen( UInt uRefNum ) SYS_TRAP ( sysLibTrapOpen );
>
> The big pain of this is the SYS_TRAP macro. I don't see how to call an
> arbitrary trap # (i.e. sysLibTrapOpen) when I don't know the trap number
> until runtime.
>
> Now, what I want to know is-- how to do this generically? Short of having
> 2000 function prototypes, how do I do this? Is there a way of coding the
> trap generically?
>
> This doesn't even begin to think about how to deal with different return
> values.
> That I can deal with. The TRAP issue is the showstopper for me.
>
> Thanks,
>
> Joe
>
> __________________________________________________________
> Joe Nardone ([EMAIL PROTECTED])
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/