Archive: Include DLL


Include DLL
Hi,

I include my dll in a NSIS script. But I receive these message:

- CheckDLL::??0CCheckDLL@@QAE@XZ
- CheckDLL::??4CCheckDLL@@QAEAAV0@ABV0@@Z
- CheckDLL::?CheckEPass1k@CCheckDLL@@QAEHXZ
- CheckDLL::?fnCheckDLL@@YAHXZ
- CheckDLL::?nCheckDLL@@3HA

Invalid command: CheckDLL::CheckEPass1k
Error in script ..... on line 16 -- aborting creation process

Why? I have developed my DLL like other NSIS's DLL. I have compiled my DLL source with Visual Studio.NET 2003.

Have you any suggestions?

Thanks,
Lorenzo.


Add extern "C" to every exported function when compiling in C++.


If your source files have .cpp (not .c) extension, add extern "C" keyword


extern "C"
void __declspec(dllexport) c_entry_point_name(HWND hwndParent, ...