-
Dll Help
I mostly program in C# and am having to create a C++ DLL for another project.
I'm having problems with the function names of the dll becoming mangled after compilation.
I have searched the newsgroups and only found to use the following line.
#define EXPORT extern "C" __declspec (dllexport)
EXPORT BOOL CALLBACK TESTFUNC();
However, this is not working. The function names are still becoming mangled.
I'm using Visual Studio .NET 2003.
Any help is greatly appreciated!!
-
This might be a dumb question, but did you tell Visual Studio to complie it as a DLL? (I'm not sure how to set this option.)
-
It is set to compile as a dll.
I created a DEF file and relinked and it seems to be working now.