Click to See Complete Forum and Search --> : How to let 2 ActiveX communicate with each other?


simen wu
June 4th, 2002, 01:54 PM
I'm going to develop two ActiveX components (say ActiveX1 and ActiveX2) and put them in the same window. Now the question is,
is it possible for ActiveX1 to call functions defined in ActiveX2, or vice versa?

Lots of thanks ahead!

Simen

stickben
June 5th, 2002, 08:44 PM
Well, I dont know if this will help you or not, but you can pass an instance of the app to each of the controls and make sure that the app has an instance of both the controls in a globally accessable place. Then the controls can invoke functions by refrencing the instance of the application. The downside to this is that you need to know the type of the app like (CMyTestapp).