Prev Previous Post   Next Post Next
Old 14th November 2014, 19:28   #1
parasoul
Senior Member
 
Join Date: Aug 2007
Posts: 117
Question Plugin not Recognized by NSIS

Hello,
I'm compiling a NSIS plugin in Watcom using C++. I'm exporting a simple NSIS function:

PHP Code:
#define NSISFUNC(name) extern "C" void __declspec(dllexport) name(HWND hWndParent, int string_size, int* variables, stack_t** stacktop, extra_parameters* extra)
NSISFUNC(Test)
{
MessageBox(0,"test",0,0);

The export is showing in CFF Explorer:
http://i.gyazo.com/af29352caf9ab10d58a55c630cb4ca9b.png

The file is being built as a DLL:
http://i.gyazo.com/bfb0566d76a126c6d060e06a9bcc931e.png

when I try to compile:
Quote:
Name: "Memento"
OutFile: "Memento.exe"
XPStyle: on
ShowInstDetails: show
Section: ""
Invalid command: Test::Test
I'm 100% positive Test.dll is in the correct directory

I'm not sure exactly how NSIS's compiler resolves a plugin function, but I assume that it looks for the presence of the DLL -> make sure that it's a DLL -> presence of an export matching the function name -> done

Any idea what the problem is here?

Here's a download to Test.dll:
https://www.sendspace.com/file/4kz9ip

Many thanks
parasoul is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump