Creating Class library (COM object)
-
Hi I am creating dll using C#. I made the research and little bit confused with following: 1) does all the classes need Guid? 2) Does all the class need interface classes? or can I have just regular class without interface and Guid? [Guid("....")] public interface myclass_interface { .... } [Guid("...."), ClassInterface(ClassInterfaceType.None)] public class myclass_class:myclass_interface { .. } 3) Can library have static function/procedures so other classes can call them directly? Thank you.
-
Hi I am creating dll using C#. I made the research and little bit confused with following: 1) does all the classes need Guid? 2) Does all the class need interface classes? or can I have just regular class without interface and Guid? [Guid("....")] public interface myclass_interface { .... } [Guid("...."), ClassInterface(ClassInterfaceType.None)] public class myclass_class:myclass_interface { .. } 3) Can library have static function/procedures so other classes can call them directly? Thank you.
1 - Not unless you want to create a COM dll 2 - depends, are you creating a COM dll ? 3 - I don't see why not Why do you want to create a COM dll, or are you thinking you have to ?
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )