com - Will VB.NET automatically generate ComClass attribute and guids? -
Text after "
I have some VB.NET code that clearly creates three GUID constants and uses them in a class's ComClass attribute Has gone across. I have written COM-aware classes in the past by checking the "COM-Visible" and "register for COM interop" option in the project options. Is this clear code just unnecessary, or is it over and beyond Is doing something? Here's a piece:
& lt; ComClass (MenuHandler.ClassId, MenuHandler.InterfaceId, MenuHandler.EventsId) & gt; Public Class MenuHandler PublicConstallCLASSID string = "A2204623-A902-44d4-B524-FDFFCD176E53" Public Constant InterfaceId String = "3449CA8B-16DF-4a61-8BAB-DFF27AE70F5E" as a Public Corn EventId = "06C156DD- After class "itemprop =" text "> clear sections and enumerations, after the class end
COM "making visible" and "register for COM interop" is a simple way to create COM objects but is not recommended. This will show the overhead for each class - even those you do not want.
Comments
Post a Comment