Re: PB Generated DLL

Tech-Archive recommends: Speed Up your PC by fixing your registry



Well, do you have any *.DEF file in your DLL project?


"Nick Farrow" <NickFarrow@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:17A4168C-A0F9-480E-A9EB-03B53C1F4BFD@xxxxxxxxxxxxxxxx
Thanks Paul,

Checked with good old dumpbin and the extern "C" route looks to be producing
the standard non mangled exports. Must be something else ...


"Paul G. Tobey [eMVP]" wrote:

Well, those two will definitely generate different results. You can use the
dependency viewer that should be installed in the Visual Studio path
somewhere (search for "depend"), to see what actually was exported, or you
can use dumpbin, the command line tool, to see what's in the DLL.

Paul T.

"Nick Farrow" <NickFarrow@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:197A9274-01BA-466C-BEC7-AFF97A4085F9@xxxxxxxxxxxxxxxx
Hi,

IS there a trick to exposing the entry points from a PB generated DLL ?

I have tried extern

"C" __declspec(dllexport)
__declspec(dllexport)

And the dotnet app thats trying to latch onto these always throws a
EntryPointNotFound exception ?

Any idea of the correct linkage to use ?

Thanks

nick






.



Relevant Pages

  • Re: unresolved external symbol/using an external dll
    ... Use dumpbin /exports on the library file. ... Most likely you need to have the functions declared with extern "C". ... >> function signatures that are externally available from this dll. ... or if VC++ is simply not able to access the .lib files or if the ...
    (microsoft.public.vc.language)
  • Re: unresolved external symbol/using an external dll
    ... Use dumpbin /exports on the library file. ... Most likely you need to have the functions declared with extern "C". ... >> function signatures that are externally available from this dll. ... or if VC++ is simply not able to access the .lib files or if the ...
    (microsoft.public.windowsce.app.development)
  • Re: unresolved external symbol/using an external dll
    ... Use dumpbin /exports on the library file. ... Most likely you need to have the functions declared with extern "C". ... >> function signatures that are externally available from this dll. ... or if VC++ is simply not able to access the .lib files or if the ...
    (comp.lang.cpp)
  • Re: PInvoke a legacy class?
    ... Which parts actually constitute the mangled name DllImport is looking for? ... > or the numeric ordinal - you can use dumpbin or depends to find out this ... > then P/Invoke this from managed code. ... But how do you do that for a legacy dll that is built as a ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Easiest way to do P/Invoke
    ... extern static int MyFunction ... extern "C" __declspecBOOL MyFunction(LPBYTE lpBuffer, ... > managed code and filled by the C DLL, rather than using unmanaged code to ...
    (microsoft.public.dotnet.framework.compactframework)