CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2002
    Posts
    3

    How to let 2 ActiveX communicate with each other?

    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

  2. #2
    Join Date
    Aug 2001
    Location
    Indiana
    Posts
    117
    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).
    "If it seems that I have seen further than others, it is because I stand on the shoulders of giants" --Newton

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured