Last post Jun 08, 2010 06:22 AM by shanenarri
Jun 02, 2010 01:01 PM|shanenarri|LINK
http://msdn.microsoft.com/library/ms973802.aspx this is a very good tutorial for understanding COM and .net Interoperability.
But, i have some questions regarding COM and .net interoperability.
I have created a sample .net dll(consisting of interface and an implemented class)and i am able to get those .net dll interfaces in my COM environment. Its fine and working.
But, i modified the .net dll(consisting of only classes but no interfaces).But, i am not able to see the method that are implemented in the class of .net dll library in the COM environment. But, if i have an interface exposed with method signatures i can
able to access those interface methods in the COM environment. But when i have only class with some methods in my .net dll i am not able to get access to the class methods in the COM environment. Can somebody tell how to get access of Class members in the
Jun 02, 2010 03:47 PM|ignatandrei|LINK
make your class implement the interface
Jun 04, 2010 07:02 AM|shanenarri|LINK
Is this possible to expose only a .net class to a COM client without making the class implementing the interface?
Jun 08, 2010 06:22 AM|shanenarri|LINK
Yes, It is possible to make a .net class to a COM client without making the class implementing the inteface. It can be possible by giving [ClassInterface(ClassInterfaceType.AutoDual)] attribute to the .net Class.