AnsweredAssumed Answered

Interfacing with C DLL

Question asked by VRFuser on Jul 11, 2002
Andy -

> As far as I'm aware the use
> of the __declspec(dllexport)
> command in C means you don't
> need a .DEF file.

That's correct. They are different ways of doing the same thing.

> specific and I'm compiling
> some temporary test code in
> Dev C++. Would this have any
> impact on the DLL created?

Most definitely. You can do one of three things:

  1) Find out the real function name by using dumpbin.exe /exports myDll.dll
  2) Rename your source file to .c
  3) Use the extern "C" linkage specifier in the function proto/decl

-SHAWN-

---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo.  To send messages to
this maillist, just email to "vrf@lvld.agilent.com".  Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------

Outcomes