connectionpoints

event notifications not received as described

Problem: Event notifications (From COM object - Server) are not received as listed in the Sink (class) implementation. One event notification is received (Event_one), however, others are not received accordingly If order is changed - in IDispatch::Invoke, that is: if Event_one is swapped to Event_two then Event_two notification rece...

Interop Assembly with delegates

I've wrote a Interop Assembly for a COM library. Everything was fine, except when I've tried to support events. This is my coClass definition: coclass NetCustomWatcher { [default] interface INetCustomWatcher; [default, source] dispinterface _INetCustomWatcherEvents; }; It's pretty simple. I read a lot of articles...

IE attachEvent on object tag causes memory corruption

I've an ActiveX Control within an embedded IE7/8 HTML page that has the following event [id(1)] HRESULT MessageReceived([in] BSTR id, [in] BSTR json). On Windows the event is registered with OCX.attachEvent("MessageReceived", onMessageReceivedFunc). Following code fires the event in the HTML page. HRESULT Fire_MessageReceived(BSTR id,...