orderflow
-Interested User-
Posts: 7
Joined: Aug 12, 2010
|
Posted: Dec 8, 2010 11:03 AM
Msg. 1 of 6
C# application written to connect to IQFeed using DTNIQFeedComLib. Before running the C# application, I have to launch IQFeed using IQFeed launcher. Once IQFeed launcher is started then my custom C# application connects to data feed without any problem.
The above is true only on some computers on others it works fine.
I have solved the above problem (on problematic computers) by adding the product using IQFeed Diagnostics Utility. Once I add the product to the IQFeed Diagnostics Utility, I no longer have to launch IQFeed using IQFeed Link Launcher.
I would like to do this programmatically instead of asking my users to use IQFeed Diagnostics Utility. Can someone suggest me the solution. Thanks in advance.
|
DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005
|
Posted: Dec 8, 2010 11:06 AM
Msg. 2 of 6
You can launch the feed directly from your app and pass the appropriate product and version via command line parameters.
Take a look at the documentation for initializing the feed and email/chat with developer support if you have questions.
|
orderflow
-Interested User-
Posts: 7
Joined: Aug 12, 2010
|
Posted: Dec 8, 2010 11:54 AM
Msg. 3 of 6
I am using following to Register client app:
RegisterClientApp(new WindowWrapper(AppCollection.MainWindow).Handle.ToInt32(), "xxxx", "0.11111111", System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString());
This did not work for me.
|
DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005
|
Posted: Dec 8, 2010 12:31 PM
Msg. 4 of 6
That is an older method for launching the feed but it should still work currently. I'm assuming you replaced "xxxx" with your registered productID. What happens when you Call that method (how do you determine that it didn't work)?
There is a newer method for launching the feed that simplifies the process (and doesn't require you to use the IQ32.dll) by just launching the exe directly and providing your product information with command line parameters. Since you are already doing development to fix what isn't currently working for you (for whatever reason), I would recommend that you just bypass the issue and update to the new launching method.
|
orderflow
-Interested User-
Posts: 7
Joined: Aug 12, 2010
|
Posted: Dec 8, 2010 03:08 PM
Msg. 5 of 6
Will it be possible to send me link to proposed document. Also, if possible an example to launch the exe. Thanks!
|
DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005
|
Posted: Dec 8, 2010 03:18 PM
Msg. 6 of 6
Do you have the developer version of IQFeed installed? If so, you should have the documentation installed in your MyDocs directory (that is the default directory unless you changed it) along with the source code for the example apps (although there isn't a sample in the download for C#). The filename is InitializingTheFeed.html If you don't have the dev install of IQFeed, you can download it by logging into the dev section of the website here: http://www.iqfeed.net/dev/index.cfm?login=loginAfter you are logged in, click on "Download API" in the left hand navigation menu. Note, you can also see the IQFeed documentation on the website after you have logged in (also using the left hand navigation menu) I can email you a C# example for launching the feed. Which email address would you like sent to (feel free to send to to me in a Private Message instead of posting it on the public forums).
|