I made a test dll with VB. It contains one function:
Public Function Add(Value1 As Double, Value2 As Double) As Double
On Error Resume Next
Add = Value1 + Value2
End Function
in Class-Module called clsCalculate.
Instancing is 5= Multiuse
I try to call this dll from within a EFS like this:
var d = new DLL("K:/Visual-Prog/eSignal/DLL-Test/TestDll.dll");
function preMain() {
d.addFunction("Test", DLL.DOUBLE, DLL.STDCALL ,"Add", DLL.DOUBLE, DLL.DOUBLE);
}
function main() {
var v = d.call("Test", 4, 5); // This is line 18
debugPrintln("v = " + v + "\n");
}
The following error occurs:
line 18: Internal Error: ... Fumction(Add) was not found
What do I need to change, to call this dll?
Traveller
Public Function Add(Value1 As Double, Value2 As Double) As Double
On Error Resume Next
Add = Value1 + Value2
End Function
in Class-Module called clsCalculate.
Instancing is 5= Multiuse
I try to call this dll from within a EFS like this:
var d = new DLL("K:/Visual-Prog/eSignal/DLL-Test/TestDll.dll");
function preMain() {
d.addFunction("Test", DLL.DOUBLE, DLL.STDCALL ,"Add", DLL.DOUBLE, DLL.DOUBLE);
}
function main() {
var v = d.call("Test", 4, 5); // This is line 18
debugPrintln("v = " + v + "\n");
}
The following error occurs:
line 18: Internal Error: ... Fumction(Add) was not found
What do I need to change, to call this dll?
Traveller
Comment