Please if someone could help me here with a problem.
The problem is:
I want to load a dll with exported functions made in masm32 into Microsoft Visual C++ Program. I want to use the functionality of import libraries of the dll in the program. I do not want to load the dll by using Loadlibrary function. I tried to load the import library in the program at design time and compile time but failed. Please help me with this situation.
Posted on 2002-08-04 08:27:43 by Wonder Mage
In the C code, add a declaration for the func like so...

extern "C" DWORD __stdcall MyImportedFunc(DWORD);

Also dont forget to add the lib produced by MASM......either include it in the project options of VC++ or add this line to the top of your code

#pragma comment(lib,"MyMasmDll.lib")

That should do it....
Posted on 2002-08-04 10:45:57 by Fordy
Thanks Fordy, I will try this example out.:)
Posted on 2002-08-06 07:37:04 by Wonder Mage
How can I make .lib file which works in Borland C++ Builder?
Posted on 2004-10-31 13:14:10 by Linkku
Hi Linkku,

Welcome to the forum.

The C++ Builder package should contain the tool implib which creates import libraries from DLLs.
Posted on 2004-11-01 13:58:16 by Vortex
Thanks Vortex.
Posted on 2004-11-02 07:42:18 by Linkku