I've been trying to work with DLL's too, not much luck though!
I've tried making a basic script to simply display some test from a DLL.
SCRIPT:
code:
function OnEvent_Initialize(MessengerStart)
{
var MyActiveXObject = new ActiveXObject('Project1.Class1');
Debug.Trace(MyActiveXObject.ShowMyText);
}
VB DLL:
code:
Public Function ShowMyText()
ShowMyText = "Hello World!"
End Function
I am using the code above, but I keep getting the following error..."
code:
Script is starting
Script is now loaded and ready
Function called: OnEvent_Initialize
Error: Wrong number of arguments or invalid property assignment.
Line: 4. Code: -2146827838.
Function OnEvent_Initialize returned an error. Code: -2147352567
Any idea what I am doing wrong?
Thanks