Futures_Shark
01-02-2007, 04:12 AM
I tried adding a Ninjatrader COM Client reference to a C# project and got an error message saying that the activex type library was exported from a .NET assembly and that I should reference the .NET Assembly. I have a reference to NinjaTrader.Core.dll but this doesn't seem to contain the DLL interface functions
I was able to get a DLL function to work using the following code:
[DllImport("NtDirect.dll")]
public extern static int Connected(int showMessage);
public static int _ATIConnected()
{
int ShwMsg = 0;
return Connected(ShwMsg);
}
Is this the only way to access the NtDirect.dll ATI Interface functions in C#?
The COM interface & sample code didn't work on my PC when I tried using VB6 or .NET
I was able to get a DLL function to work using the following code:
[DllImport("NtDirect.dll")]
public extern static int Connected(int showMessage);
public static int _ATIConnected()
{
int ShwMsg = 0;
return Connected(ShwMsg);
}
Is this the only way to access the NtDirect.dll ATI Interface functions in C#?
The COM interface & sample code didn't work on my PC when I tried using VB6 or .NET