DLL Object |
Top Previous Next |
DLL Object
The eSignal EFS DLL Object allows you to interact with DLL files from within your EFS scripts.
DLL Methods
DLL.addFunction( refName, returnType, functionDefType, functionName [, parameters...] )
Usage
var d = new DLL( "c:/testdll/myTest.DLL");
function preMain() {
d.addFunction("MyCallName", DLL.DOUBLE, DLL.CDECL, "Testing123", DLL.INT, DLL.STRING, DLL.FLOAT, DLL.DOUBLE, DLL.BYTE); }
DLL.call( refname [, parameters] )
Usage
var d = new DLL( "c:/testdll/myTest.DLL" );
function preMain() {
d.addFunction( "MyCallName", DLL.DOUBLE, DLL.CDECL, "Testing123", DLL.INT, DLL.STRING, DLL.FLOAT, DLL.DOUBLE, DLL.BYTE );
//in the above example: // "MyCallName" is the internal name we have assigned to the DLL function we are calling // DLL.DOUBLE is the type of value it returns (e.g., a double-precision number) // DLL.CDECL is the calling convention used by our DLL // "Testing123" is the actual function name of the exported DLL function. // DLL.INT signifies that the first input parameter is an integer // DLL.STRING signifies that the second input parameter is a string // DLL.FLOAT signifies that the third input parameter is a float // DLL.DOUBLE signifies that the fourth input parameter is a double // DLL.BYTE signifies that the fifth input parameter is a byte
}
function main() { var retVal;
retVal = d.call( "MyCallName", 123, "hello world", 456.23, 544.0014053, 255 );
}
|