471,338 Members | 1,305 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,338 software developers and data experts.

C# determining calling object when external .COM libraries constructors are fixed

I utilize a COM library to receive historical quote data on currencies. My problem is the constructors of the event are fixed.

m_HistoryLookupClass.MinuteReceived += new _IHistoryLookup2Events_MinuteReceivedEventHandler( m_HistoryLookupClass_MinuteReceived);

void m_HistoryLookupClass_MinuteReceived(string bsData)
... //send data here

since at any given time there may be several instances of m_HistoryLookupClass
running, how can I determine which instance called the minute received event? Normally to accomplish this I would pass a reference to the object with the constructors, but the constructors are fixed by the external .COM library and I can't change them. (or is there a way to?) Any help would be very appreciated, and if I've been unclear please let me know! thanks
Jun 17 '07 #1
0 737

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by Steve Neill | last post: by
6 posts views Thread by Justin | last post: by
4 posts views Thread by Sivakumar Shanmugam | last post: by
19 posts views Thread by Deniz Bahar | last post: by
16 posts views Thread by teju | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.