Is is possible to create COM component and ActiveX controls in .Net (using c# language). I searched internet but i could`t get anything. Thanks, santhosh
Declare an interface and implement it with class. If you have parameters/return values that are not OLE Automation compatible (custom structs, enums and so on), you might need to decorate them with the MarshalAs attribute. Add the GUID attribute to both. Add the COMVisible attribute to both. Alternatively, you can mark the assembly with it. Use tlbexp to generate a type library for native clients.
1.4m articles
1.4m replys
5 comments
57.0k users