View Single Post
Old 28th February 2019, 14:08   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,356
A .LIB is not executable code, you must create a .DLL. The System plug-in does not understand C++ namespaces either, you should export the function as a undecorated C function.

Quote:
EXTERN_C DWORD WINAPI MyFunc(LPCWSTR p1)
{
return 42;
}
and add a .DEF file or whatever method your tool-chain uses to export functions.


Use http://www.dependencywalker.com/ to look at your exported function name.

Plug-ins in the plug-ins folder only work when they follow the NSIS plug-in function ABI and you don't use the System plug-in to call them.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote