Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   makensis not finding plugin function (http://forums.winamp.com/showthread.php?t=380532)

parasoul 10th February 2015 05:07

makensis not finding plugin function
 
Hello,
Can you please take a look at this test plugin and tell me why makensis is unable to find the plugin function?

Plugin: https://www.sendspace.com/file/qde368

I'm just calling it as NSISTest::_NSIS_Test and makensis reports that "Plugin not found, cannot call NSISTest::_NSIS_Test"

The export is present and has a virtual size.

Is this a bug in makensis or a problem with the way I'm building it?

Thank you

Anders 10th February 2015 06:16

Which compiler and linker are you using?

That PE file does not have IMAGE_FILE_DLL set in NTHeaders->FileHeader.Characteristics.

Also, you don't need to export DllMain...

parasoul 11th February 2015 00:10

Thanks Anders. I'll go ahead and set that manually. I was using an old version of Digital Mars.

I know I don't need to export DllMain, but for some reason Digital Mars by default exports it, and I didn't change it.

Thanks again

Anders 11th February 2015 13:59

You can get both old and new versions of Microsoft Visual C++ and GCC for free so I don't understand why you want to keep using this broken toolchain. Anyway, you should make sure LoadLibrary+GetProcAddress works on your .dll before blaming NSIS...


All times are GMT. The time now is 17:19.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.