.NET COM OBJECT

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,

Is it possible to create a C#/.NET COM object or DLL that would be accessible by both a C#/.NET application and a VC++/MFC application?

Thanks,

Phil
 
Take regular .NET library project, check "Register for com interop" and you receive .NET dll, that can be used as just COM
You can also write ServicedComponent and have all COM+ advantage
 
From the MSDN help file: ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cptools/html/cpgrfassemblyregistrationtoolregasmexe.ht

"The Assembly Registration tool reads the metadata within an assembly and adds the necessary entries to the registry, which allows COM clients to create .NET Framework classes transparently. Once a class is registered, any COM client can use it as though the class were a COM class. The class is registered only once, when the assembly is installed. Instances of classes within the assembly cannot be created from COM until they are actually registered.

The way described above allows your assembly to be accessed both by .net components and COM components

I hope this helps

tuuky
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top