ActiveX events in C#

367 Views Asked by At

I am trying to use an old ActiveX control in C#, and this line from CreateSink method

cookie = new AxHost.ConnectionPointCookie(ocx, eventMulticaster, typeof(TrueDBGridEvents));

will fail and generate an exception.

The exception is "Source object does not expose 'TrueDBGridEvents' event interface. When you look in the object browser the interface is there.

object browser

I can not find a reason why the ConnectionPointCookie will not find this interface.

0

There are 0 best solutions below