View Single Post
Old 28th February 2019, 13:49   #1
Junior Member
Join Date: Feb 2019
Posts: 1
Static library call


I have a static library written in C++ (test.lib). Can I call this library method from system plugin? I copied test.lib in plugin folder and trying to call method exposed by lib but getting error. Is there any difference between calling a custom dll's method and custom lib's method?

code snippet from library:
// header file
namespace TestLibrary
DWORD TestCall(LPCWSTR str); // Based on string content this method return 0 or 1

code snippet from nsi script

System::Call 'Test::TestLibrary::TestCall(t "custom string") i .R0'

MessageBox MB_OK "Test $R0" ; it print Test Error, I am expecting some int value

Any pointer highly appreciated..

mjilani is offline   Reply With Quote