I’ve created a .Net assembly that exposes an event. I can consume without problems the event from VB6. Now I’ve deployed the assembly to a PowerBuilder developer and he says he cannot handle events from COM objects if they are not ActiveX.
Are different the ActiveX events from the normal COM events? Should I implement some additional interfaces so PowerBuilder can ‘see’ the events?
Thanks in advance.
Both events are implemented via connection points (
IConnectionPointand friends). ActiveX controls typically implement the connections points with certain additional constraints:IDispatch::Invoketo deliver the actual events.IProvideClassInfo2to also provide this information.It might so happen that PowerBuilder or another COM event consumer relies on one or more of the items mentioned above, and as such it will only work with some event sources, and would refuse to work with other.