Without:
- ATL
- MFC
Note:
- Plain C++
- Out-of-process COM Object/server
- Predefined TLB file
Question:
- How to implement an outgoing interface, so the COM Object can notify the sink of events?
- How to handle the event appropriately, once received?
Below is the event function I'd like to implement - from TLB file:
inline HRESULT IS8SimulationEvents::S8SimulationEndRun ( ) {
HRESULT _result = 0;
_com_dispatch_method(this, 0x2, DISPATCH_METHOD, VT_ERROR, (void*)&_result, NULL);
return _result;
}
Regards