0

I want to run a COM Server (out of process) as part of a WinForms application - targeting .NET 2.0

The sample code I found here: http://support.microsoft.com/kb/977996 uses a message loop, which will most likely interfere with the WinForms app

Is it possible to create a COM server inside a WinForms app? My backup plan is to use a stand-alone COM server EXE (as per the example), and send info to my app through named pipes WCF calls, but I would prefer not to do that due to the overhead of installing and managing another application.

Thanks!

Joon
  • 2,127
  • 1
  • 22
  • 40
  • 1
    This feels like a Windows Service... have you considered that approach at all? Cute dog, btw :) – Lynn Crumbling Dec 09 '13 at 18:33
  • 1
    possible duplicate of [Unable to cast COM object of type '...' to interface type '...' while using an ExeCOMServer](http://stackoverflow.com/questions/10750947/unable-to-cast-com-object-of-type-to-interface-type-while-using-an-e) – Hans Passant Dec 09 '13 at 18:34

0 Answers0