I have seen the postings about calling a C++ based DLL from an EFS script. I have generated a DLL using VB.Net 2005 with a simple test function that has no input parameters and returns an integer.
I have tried calling it using the simple script below, but it cannot find the function. I get the error "Internal Error: DLL ("C:\Dev\Class1\bin\Release\Class1.dll"), Function(test) was not found"
Are there any DLL examples using vb?
Trevor
======================
var Title = "DLLTest"
var d = new DLL("C:\\Dev\\Class1\\bin\\Release\\Class1.dll");
d.addFunction("mycall", DLL.INT, DLL.STDCALL, "test");
function preMain() {
setPriceStudy(true);
setStudyTitle("Sample");
var v = d.call("mycall");
debugPrint("v = " + v + "\n");
}
function main() {
}
I have tried calling it using the simple script below, but it cannot find the function. I get the error "Internal Error: DLL ("C:\Dev\Class1\bin\Release\Class1.dll"), Function(test) was not found"
Are there any DLL examples using vb?
Trevor
======================
var Title = "DLLTest"
var d = new DLL("C:\\Dev\\Class1\\bin\\Release\\Class1.dll");
d.addFunction("mycall", DLL.INT, DLL.STDCALL, "test");
function preMain() {
setPriceStudy(true);
setStudyTitle("Sample");
var v = d.call("mycall");
debugPrint("v = " + v + "\n");
}
function main() {
}
Comment