Re: GetProcAddress() refused to return address
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Tue, 19 Sep 2006 17:12:54 -0400
Jo <JoJoTwilligo@xxxxxxxxxxx> wrote:
I'm trying to explicitly link a 3rd party DLL, but I can't get
GetProcAddress() to return an address to any of my functions. I'm able
to link implicitly, and here's a declaration for one of the functions
that I used for implicit linking:
extern "C" int __declspec(dllexport) __cdecl OpenFile(LPCTSTR
AFileName);
I bet the function is exported under a mangled or decorated name. Use
Dependency Walker (http://www.dependencywalker.com) to check. Use .DEF
file to export a function with a plain undecorated name.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- Follow-Ups:
- References:
- Prev by Date: GetProcAddress() refused to return address
- Next by Date: defragmenting memory
- Previous by thread: GetProcAddress() refused to return address
- Next by thread: Re: GetProcAddress() refused to return address
- Index(es):
Relevant Pages
|