Join the 80,000 other DTN customers who enjoy the fastest, most reliable data available. There is no better value than DTN!

(Move your cursor to this area to pause scrolling)




"Its working FABULOUSLY for me!! Holy cow...there has been so much I've been missing lately, and with this feed and Linnsoft software...I'm in the game now." - Comment from Chris R.
"I am a hedge fund manager here. It’s funny, I have a Bloomberg terminal and a Bridge feed, but I still like having my DTN feed!" - Comment from Feras
"If someone needs the best quality data and backfill beyond what their broker provides at a rate that is the best in the industry, I highly recommend IQFeed." - Comment from Josh via Public Forum
"I used to have *******, but they are way more money for the same thing. I have had no probs with data from DTN since switching over." - Comment from Public Forum Post
"Everything is working great ! Very impressive client. The news refreshes better and is more pertinent than the ******* feed I paid $ 100/month for. I Also like the charts a lot." - Comment from Leon
"For anyone considering using DTN.IQ for a data feed, my experience with the quality of data and the tech support has been very positive." - Comment from Public Forum
"There is no doubt that IQFeed is the best data provider. I am very satisfied with your services. And IQFeed is the only one that I would recommend to my friends. Now, most of them are using your product in China." - Comment from Zhezhe
"My broker in Davenport suggested I give you a try as he uses your service and says its the best." - Comment from Bill via RT Chat
"With HUGE volume on AAPL and RIMM for 2 days, everyone in a trading room was whining about freezes, crashes and lag with *******, RealTick, TS and Cyber. InvestorRT with IQFeed was rock solid. I mean SOLID!" - Comment from Public IRC Chat
"It’s so nice to be working with real professionals!" - Comment from Len
Home  Search  Register  Login  Recent Posts

Information on DTN's Industries:
DTN Oil & Gas | DTN Trading | DTN Agriculture | DTN Weather
Follow DTNMarkets on Twitter
DTN.IQ/IQFeed on Twitter
DTN News and Analysis on Twitter
»Forums Index »Archive (2017 and earlier) »IQFeed Developer Support »Sample console application using COM
Author Topic: Sample console application using COM (5 messages, Page 1 of 1)

xen
-Interested User-
Posts: 15
Joined: Nov 12, 2006


Posted: Nov 12, 2006 09:29 PM          Msg. 1 of 5
Hi All,

I was wondering if anyone had a sample app that uses COM for Level I/II and History? I've got a little C++ console app running using the TCP/IP interface but I think the COM interface would be much quicker and I wouldn't have to parse all the data. I know the supplied sample C++ applications show this but I was looking for something much simpler, perhaps something that didn't have all the GUI stuff wrapped with it. I'm not really familiar with all the VC++ workings.

Thanks in advance,
Joseph

DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005


Posted: Nov 13, 2006 05:13 PM          Msg. 2 of 5
Joseph, we (DTN) currently do not have any example code for what you are asking.

I will check into this a bit more tomorrow

TLikins
-Interested User-
Posts: 32
Joined: Jul 11, 2005

Howdy


Posted: Nov 20, 2006 11:59 AM          Msg. 3 of 5
Hi Joseph,

I was wondering why you think the COM interface is faster than the TCPIP interface.
It would seem to me that a COM object talking to DTN would still have to use the
TCPIP interface since it goes through the internet. I think that due to all of the marshalling of the data through a COM object, it is inherently SLOWER than the TCPIP
socket. I don't know the exact methods that DTN uses to talk to the servers but I would bet that they use the TCPIP one for the reason mentioned above. Please explain if I
am incorrect, this COM stuff is pretty complex.

Good Luck

xen
-Interested User-
Posts: 15
Joined: Nov 12, 2006


Posted: Nov 21, 2006 10:34 PM          Msg. 4 of 5
TLikins,

Thanks for the response, yeah I didn't fully realize that I would still be doing string tokening on the Level I data even with the COM object. That was my only reason for wanting the object...but it looks like that is unavoidable.

TLikins
-Interested User-
Posts: 32
Joined: Jul 11, 2005

Howdy


Posted: Nov 22, 2006 12:35 PM          Msg. 5 of 5
Joseph,

I don't know what development platform you use but most modern tools have things like
list objects that automatically parse the data for you. I use the Borland C++ Builder for my
development. One of the objects that I use is a string list component. One of the properties
is the word separator character. By specifying what character you want to use to split a
string, ie space or coma, it becomes very easy to select the string list index for the field
you want. I don't know how Microsoft does this with their IDE but there must be something
similar.

Good luck
 

 

Time: Mon May 6, 2024 7:56 PM CFBB v1.2.0 13 ms.
© AderSoftware 2002-2003