Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. ActiveX and events

ActiveX and events

Scheduled Pinned Locked Moved COM
comhelp
2 Posts 2 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Ivan Polak
    wrote on last edited by
    #1

    I use in dialog-based application ActiveX object (1) and in ActiveX object (1) second ActiveX object (2). I don`t use events from first ActiveX (1) in second ActiveX (2). Please, help me. Thanks.:confused: Ivan

    J 1 Reply Last reply
    0
    • I Ivan Polak

      I use in dialog-based application ActiveX object (1) and in ActiveX object (1) second ActiveX object (2). I don`t use events from first ActiveX (1) in second ActiveX (2). Please, help me. Thanks.:confused: Ivan

      J Offline
      J Offline
      Julien
      wrote on last edited by
      #2

      Ivan, I assume you are asking if your DialogApp can receive event from the 2nd ActiveX Control. You need to somehow get access to ActiveXCtrl2 and I recommend that that you implement a mehtod in ActiveXCtrl1 like: HRESULT GetActiveX2(IUnknown** ppUnknown); Which will supply you with the Interface pointer. Then you can do the usual QueryInterface stuff to get a handle to the ctrl. That then leads to Asking for the ConnectionPointContainer etc. This is assuming C++ of course. Sorry I couldn't go into more detail, but there just so much I didn't know where to start. Jules

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups