This is the mail archive of the
mailing list for the Cygwin project.
Re: More DLL fun! [fwd: ]
- To: firstname.lastname@example.org, email@example.com
- Subject: Re: More DLL fun! [fwd: ]
- From: "Emanuele ALIBERTI" <firstname.lastname@example.org>
- Date: Thu, 15 Jul 1999 15:43:20 PDT
> > I am trying to compare 2 pointers to functions.
> > All I am looking for is if they match or not.
> > The pointers are to a function.
> > The function is in a DLL, and the first place to get the
> > function pointer is in an exe.
> > The following is kind of a code sample (kind of but not really).
The behaviour is correct. I suppose you use an import library to call the
DLL. The import library has stubs for each function the DLL exports and what
you pass is the client process stub's address (the only known at link time).
That is why your two pointers never match. You must explicitly get the
relocated address of the function in the DLL by calling
Get Your Private, Free Email at http://www.hotmail.com
Want to unsubscribe from this list?
Send a message to email@example.com