Announcement

Collapse
No announcement yet.

VB 2003, callbacks do not work

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • VB 2003, callbacks do not work

    I tried to make a new project in VB 2003 and I wrote this code:



    I also added IESignal to references.

    I still don't get the callbacks but I can see that it's beeing received in eSignal app.

    what am I doing wrong?

  • #2
    Call back problem

    Does it call back esignal_OnQuoteChanged as soon as you try to access the Quote.dbid or any other parameter? Because I think I am having a same problem. I am using VS 2005, are you using the same version as well?

    Thank you

    Bz

    Private Sub esignal_OnQuoteChanged(ByVal sSymbol As String)
    Dim quote As IESignal.BasicQuote
    quote = esignal.GetBasicQuote(sSymbol)
    lblInfo.Text = "BID=" & Str$(quote.dBid) & " ASK=" & Str$(quote.dAsk) & " LAST=" & Str$(quote.dLast)
    End Sub

    Comment


    • #3
      no, I use 2003,

      but I found the problem.

      I forgot to add
      Handles esignal.OnQuoteChanged


      Private Sub esignal_OnQuoteChanged(ByVal sSymbol As String) Handles esignal.OnQuoteChanged
      ...

      Comment


      • #4
        My problem was different. I was requesting price History for several different time intervals on ES and it was not working properly. Events were firing out of sequence, and were interupting my price HistoryRequest, so I created a class and used multi threading functionality to call each request seperatly. It is working very well. I extended that and now I receive Price Update for each new bar and update my bars seperatly on different Threads. I guess it can be extended by writting a delegate.


        Bz

        Comment

        Working...
        X