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