Announcement

Collapse
No announcement yet.

Resending.. Please help on c++/activex/timesales question

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

  • Resending.. Please help on c++/activex/timesales question

    Resending... on not getting any response. Can you please answer my earlier question ? Can I receive simultaneous Time and Sales data for two different stock symbols using c++ and activex apis, either in same or different application. As of now, when i start my 2nd application it start getting
    OnTimeSalesChanged events for the stock symbol i set in the 1st application. I want 1st and 2nd application to run simultaneously

    Thanks
    chimanshu

    earlier mail:
    ===============

    I am using the C++version of sample, DesktopApi. I modified the sample to print Timeand Sales. It does it correctly. Now if i run a second instance of the same application to print TimeansSales of *a different stock symbol*, it does not wait to ask me new symbol, instead it start printing the timeandSales of previously linked symbol from 1st application, meaning as soon as 2nd application starts, it start receiving ES_OnTimeSalesChanged events. Whereas for the 2nd application, i want to invoke (*m_piHooks)->GetRequestTimeSales with a different 'stock symbol'. Can you please let me know how can i get TimeandSales of more that 1 symbol simultaneously from different running application ?

  • #2
    multiple handles

    You need to store the handle you get back from RequestTimeSales and use it to compare the handle you get in the callback. If they are the same, use the handle to get your data, if they are not, just return from the callback.

    Comment

    Working...
    X