I have a referenced a COM dll. Some methods expect a callback parameter. I checked the interop.MyComLib.dll in reflector:
public virtual extern void Foo([In, MarshalAs(UnmanagedType.IDispatch)] object pDispProgressCallBack);
How do I send this parameter? I can't send a delegate (compilation exception). I have tried sending this
and received InvalidCastException
.