Does anyone have an extremely simple example for how to start up IQFeed via C# in Studio (.NET 3.0), preferably a console app?
The reason I ask is that, while I have used IQFeed extensively via Python, I am completely unfamiliar with C#, Visual Studio, or COM. I'm currently trying to learn all 3 today and banging my head against the whole situation as I am so unfamiliar with the 3 that I'm having trouble focusing on the exact path to debugging my issue.
Any help would be appreciated.
Until then I'm going to rip apart the DTN example (which, to frustrate things more, is blowing up in 2008/Vista).
I feel like an idiot because my professional programming experience tells me I am missing something extremely basic.
FYI I have references to AxInterop.IQFEEDYLib, IQ_APILib, System.Windows.Forms, and IQFEEDYLib. Code is as follows, with the error occuring at
this.IQFeed = new AxIQFEEDYLib.AxIQFeedY();
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace IQTest
{
class Program
{
private AxIQFEEDYLib.AxIQFeedY IQFeed;
[STAThread]
static void Main(string[] args)
{
Program i = new Program();
i.InitIQFeed();
}
private void InitIQFeed()
{
this.IQFeed = new AxIQFEEDYLib.AxIQFeedY();
string iqName = "IQ_TEST";
string iqVersion = "0.1";
string iqKey = "0.1";
this.IQFeed.RegisterClientApp(ref iqName, ref iqKey, ref iqVersion);
}
}
}