Search code examples
c#visual-studio-2010.net-4.0com-interopout-of-process

Can I create a COM server with just C# 4.0?


Possible Duplicate:
What do I need to do to implement an “out of proc” COM server in C#?

Hello,

I don't know much about COM or C++, so perhaps this is a silly question:

Without resorting C++/ATL wrapper program, can I make an out-of-process C#/.net 4.0 application that's callable via COM from traditional COM clients?

Thank you


Solution

  • yes you can. you can do either way. use tlbimp to import type library and tlbexp to export your type library. Make sure your assebly had a strong name and mark your objects as comVisibile or not. MSDN is the better source