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. cannot receiving events

cannot receiving events

Scheduled Pinned Locked Moved COM
c++com
2 Posts 2 Posters 16 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.
  • K Offline
    K Offline
    khoonking
    wrote on last edited by
    #1

    Hi, I created a atl com dll (full control) that consists of a simple object "a". I tried to fire events from the simple object "a" to the full control but I noticed that the full control did not receive the events. However, when I tried to created a new simple object with a sink interface within the ful control, it manage to receive the events fired from the simple object "a". Why. What should I did in order for the full control to receive the events. I call HRESULT hr = AtlAdvise(mp_Mixer, this->GetUnknown(),DIID__IMixerCtrlEvents, &m_dwCookieMixerCtrl); and hr return "0".

    A 1 Reply Last reply
    0
    • K khoonking

      Hi, I created a atl com dll (full control) that consists of a simple object "a". I tried to fire events from the simple object "a" to the full control but I noticed that the full control did not receive the events. However, when I tried to created a new simple object with a sink interface within the ful control, it manage to receive the events fired from the simple object "a". Why. What should I did in order for the full control to receive the events. I call HRESULT hr = AtlAdvise(mp_Mixer, this->GetUnknown(),DIID__IMixerCtrlEvents, &m_dwCookieMixerCtrl); and hr return "0".

      A Offline
      A Offline
      Alex Gorev
      wrote on last edited by
      #2

      Hi, You have to implement the sink in the client to be able to advise for the events. Check the arctile from MSDN ID:Q181277 "SAMPLE: AtlSink Uses ATL to Create a Dispinterface Sink" for more details... Regards, Alex Gorev, Dundas Software.

      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