PDA

View Full Version : Include DLL


lorenzop
24th June 2005, 07:12
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.

kichik
24th June 2005, 07:29
Add extern "C" to every exported function when compiling in C++.

Takhir
24th June 2005, 07:34
If your source files have .cpp (not .c) extension, add extern "C" keyword

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