quote:
Originally posted by a0369
c code:
__declspec(dllexport) int __stdcall GetScreenSize(int avar)
I had to use:
c code:
__declspec(dllexport) int GetScreenSize(int avar)
jscript code:
Debug.Trace(Interop.Call(MsgPlus.ScriptFilesPath + "\\test.dll", "GetScreenSize", 16 /* or any value*/ ))
Interop.FreeDll(MsgPlus.ScriptFilesPath + "\\test.dll")
btw, what are you trying to do?