开发者

How to find the dispatch id of an event generated by an ActiveX control

I am writing a wrapper class for an activeX control using FireBreath.

The ActiveX container class has an event sink which listens to the events fired by ActiveX control.

In the code creating the event sink, in the SINK_ENTRY_INFO metho开发者_开发问答d one of the parameter is dispatch id of the event.

Where will i find the dispatch id of the event generated by the activeX control?


Get the DISPID the same as you would for any other member on the object. You can probably use the IDispatchAPI object from firebreath:

https://github.com/firebreath/FireBreath/blob/master/src/ActiveXCore/IDispatchAPI.cpp#L444

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜