Re: GetProcAddress() refused to return address

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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


.



Relevant Pages

  • Re: static const struct {...} myStruct[];
    ... Do you think that declaration and definition are any different from the ... > With sufficient thrust, pigs fly just fine. ... > land, and it could be dangerous sitting under them as they fly ...
    (microsoft.public.vc.language)
  • Re: struct & enum & :: visibility operator
    ... declaration argument are not the same as declared in file scope... ... With sufficient thrust, pigs fly just fine. ... land, and it could be dangerous sitting under them as they fly ...
    (microsoft.public.vc.language)
  • Re: OT-Israeli Response to Rocket Attacks is "disproportionate".
    ... At the moment Israel declared itself an independent state and its Arab ... what percentage of land held by Jews was taken ... basic transfer of a homeland to the Jews in, ... the following declaration of sympathy with Jewish Zionist ...
    (rec.outdoors.rv-travel)
  • Re: how to add an event handler for a dynamically created ActiveX
    ... the second parameter pUnk __vfptr isn?t initialized ... Try removing ATL_NO_VTABLE from CSinkEvent's declaration. ... With sufficient thrust, pigs fly just fine. ...
    (microsoft.public.vc.atl)
  • Re: Need to convert VB code into ATL Obj.attach Nothing, Nothing
    ... > In VB the declaration is ... > But I have been told by the developers that I should always set these ... Igor Tandetnik ... With sufficient thrust, pigs fly just fine. ...
    (microsoft.public.vc.atl)