Topic: CComDispatchDriver putproperty for C# a class
Hello. I write COM library on C# WinForms on analog already existing on with ++ ATL. The problem description: Class Class1 on C# implements interface IClass which was used for the same class in with ++ to library. The application code on with ++ which uses these libraries, tries to receive/write down some properties Class1 (BackColor, ForeColor, Font, etc.) As follows: 1. Receives IDispatch* dispatch for Class1 2. Causes CComDispatchDriver::GetPropertyPutProperty with correct dispatch id for received above dispatch. For with ++ libraries all perfectly works, for - the error method not found is returned. For a class all dispatch id are put down in interface IClass (by call GetIDsOfNames it is received correct value) as tried to write them over everyone in a class in a type [DispId (-501)] - does not help. The direct method call at IDispatch* dispatch for Class1 works. The Dotnetovsky class is inherited at Control, tried to be inherited from UserControl - does not help. I ask from experts of the help that does not suffice at a class and how to make, that calls CComDispatchDriver:: PutProperty for it earned. In advance thanks.