Click to See Complete Forum and Search --> : problems with calling DLL


Greg11
August 28th, 2003, 08:41 AM
hello,
Visual C++ .NET
I have a problem with calling my dll from other file. I use static linking, I can obtain .dll and .lib file, .lib file is included to project. When I debbug my calling file, I can see that my .dll is not loaded to project.
I use command:
extern "C" __declspec(dllimport)void myfun(int& Ck)

What is wrong? For what should I pay attention ?

How can I check in Visual C++ .NET - how dll function is exported?

kuphryn
August 28th, 2003, 11:50 AM
One solution is dllexport.

extern "C" __declspec(dllexport) void myfun(int& Ck);

Here is one tutorial to basic DLL.

http://www.flipcode.com/tutorials/tut_dll01.shtml

Kuphryn

Krishnaa
August 28th, 2003, 01:01 PM
Can you include the project.

Andreas Masur
August 28th, 2003, 02:59 PM
[Moved thread]