【发布时间】:2009-01-18 13:29:55
【问题描述】:
我有一个 predefined TLB 文件,其中包含 IS8SimulationEvents 包装器方法实现,例如:
inline HRESULT IS8SimulationEvents::S8SimulationReset ( ) {
HRESULT _result = 0;
_com_dispatch_method(this, 0x1, DISPATCH_METHOD, VT_ERROR, (void*)&_result, NULL);
return _result;
}
使用 Oleview,我可以看到附加到 COM 对象的 IConnectionPointContainer 接口。
问题:
- 如何在接收器对象上实现传出接口,以便客户端接收来自 COM 对象的事件通知
没有:
- ATL
- MFC
【问题讨论】:
标签: c++ com event-handling