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
|