
gklangreck
-Interested User-
Posts: 3
Joined: Aug 18, 2004
|
Posted: Aug 18, 2004 02:10 PM

Msg. 1 of 4
I'm trying to develop a VB .NET program receiving up to the second stock quotes. I've tryed this simple test program to figure out what the problem is and it exits after less than 5 min without a reason. Can anyone help, please. Here is the code for the form.
Private s1 As String = "KLAC" Private s2 As String = "NVLS"
Private Sub btnGo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGo.Click IQFeed.WatchSymbol(s1) IQFeed.WatchSymbol(s2) End Sub
Private Sub IQFeed_ReceiveMessage(ByVal sender As Object, ByVal e As AxIQFEEDXLib._IIQFeedXEvents_ReceiveMessageEvent) Handles IQFeed.ReceiveMessage If (e.message.Chars(0) = "Q") Then Dim message As String() = Split(e.message, ",") If message(1) = s1 Then lstOutput.Items.Add("S1 " & message(3)) ElseIf message(1) = s2 Then lstOutput.Items.Add("S2 " & message(3)) End If End If End Sub
See very simple program, why does it exit...
|

jfcantin
-Interested User-
Posts: 20
Joined: May 18, 2004
|
Posted: Aug 18, 2004 02:44 PM

Msg. 2 of 4
Look at the following thread : http://forums.iqfeed.net/index.cfm?page=topic&topicID=150 posted a few days ago and you will have your answer. You will probably need to implement the socket interface like most of the .net users. I might be wrong, but it looks like you are using IQFeedX instead of IQFeedY. JF
|

gklangreck
-Interested User-
Posts: 3
Joined: Aug 18, 2004
|
Posted: Aug 19, 2004 11:41 AM

Msg. 3 of 4
OK I see now that I should be using IQFeedY, but I don't see any examples for VB .NET. I tried the AX control, but it would shutdown my program right after it loged in. I'm currently trying to use the Com direction from reading other problems in this forum, but still having problems with tham. Does anyone have a simple watch symbol program in VB .NET that they could send me.
Thanks...
|

DTN_Natalie_H
-DTN Evangelist-
Posts: 175
Joined: May 10, 2004
DTN Market Access, LLC.
|
Posted: Aug 19, 2004 04:53 PM

Msg. 4 of 4
We have two .NET examples, one is CSharp and the other is VB. The VB one uses IQFeedY, and would be a good one for you to review. It is installed with the developer install package, and you can acccess the code/run it from Start menu->Programs->IQFeed->.NET Examples->Level1 VB.NET COM.
Natalie Hannan DTN Market Access, LLC.
|
|
|
|