I have created a simple dll using the most recent version of Microsoft Visual C#.Net 2003. I am having problems getting this to work and I need some help.
Here is the resultant error message I am getting:
SimpleDll 11 19 2005.efs, line 7: Internal Error: DLL(testDLL.dll), Function(Add) was not found
I am also using eSignal 7.9.1 build 732.
Here is the efs:
simple efs
here is the compiled dll
test dll
and here is the uncompiled source code
source code
The efs is finding the dll, however, when it is calling the function within, it experiences the error. Any help or insight would be appreciated.
Here is the resultant error message I am getting:
SimpleDll 11 19 2005.efs, line 7: Internal Error: DLL(testDLL.dll), Function(Add) was not found
I am also using eSignal 7.9.1 build 732.
Here is the efs:
PHP Code:
var d = new DLL("testDLL.dll");
d.addFunction("MyCallName", DLL.INT, DLL.CDECL, "Add", DLL.INT, DLL.INT);
function main()
{
if (getBarState() == BARSTATE_ALLBARS)
{
debugPrintln(d.call("MyCallName", 5, 7));// line 7 where I am getting the error
}
}
here is the compiled dll
test dll
and here is the uncompiled source code
PHP Code:
using System;
namespace testDLL
{
/// <summary>
/// Summary description for Class1.
/// </summary>
public class Class1
{
public Class1()
{
//
// TODO: Add constructor logic here
//
}
/// <summary>
/// Add method
/// </summary>
public int Add(int val1, int val2)
{
return val1+val2;
}
/// <summary>
/// Mult method
/// </summary>
public int Mult(int val1, int val2)
{
return val1*val2;
}
}
}
The efs is finding the dll, however, when it is calling the function within, it experiences the error. Any help or insight would be appreciated.
Comment