Hi,
I can't use SysGetTrapAddress() to get a library function can I?
For example:
typedef Err (*myVFSFileOpen)(UInt16 volRefNum, const Char *pathNameP,
UInt16 openMode, FileRef *fileRefP);
{
myVFSFileOpen func;
func = SysGetTrapAddress(vfsTrapFileOpen);
err = func(volref, "/palm/test.text", readonly, &ref);
}
When func is called I got an fatal exception with unimplemented error.
Could func be pointing Somewhere else?
What I'm trying to do is call the original library function in my library.
I have replaced the system library. Can you call the original library
within your our library?
Regards,
-----Original Message-----
From: David Fedor [mailto:[EMAIL PROTECTED]]
Sent: September 20, 2002 1:36 PM
To: Palm Developer Forum
Subject: RE: Get a function address
>So, to answer my question what is the correct way to obtain a function
>Address without using SysGetTrapAddress()?
There isn't another way, unless you re-implement SysGetTrapAddress(),
and you couldn't really say that was the correct way. (Its
mechanisms have changed and can continue to change, so
re-implementing it would be a bad idea.)
Why not call SysGetTrapAddress()? The whole point of that function
is to give you the address.
-David Fedor
PalmSource, Inc.
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/