Click here to Skip to main content
15,878,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I'm developing COM component with many classes.
whether i need to enable COM code for every class or single class is enough.

Eg.

Class Base
{
.....
.....
}

[ComImport, Guid("E436EBB3-524F-11CE-9F53-0020AF0BA770")]
Class Base2
{

Base obj = new Base();
.....
.....
}
Posted
Comments
Sergey Alexandrovich Kryukov 1-Jun-14 13:35pm    
May I ask you: why developing COM component at all, if you are developing in .NET?
—SA
Ward 2-Jun-14 1:54am    
One reason for this can be to use the COM component from C++

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900