一杯清酒邀明月
天下本无事,庸人扰之而烦耳。

要在C++中处理COM的事件,首先查询IConnectionPointContainer接口。然后调用接口上的FindConnectionPoint查找你需要的事件接口。然后使用IConnectionPoint::Advise将事件函数绑定到你自己的事件接口上去。如果不在使用。通过调用UnAdvice取消绑定。

posted on 2021-08-16 09:39  一杯清酒邀明月  阅读(226)  评论(0编辑  收藏  举报