Create Out-Of-Process COM in C#/.Net?

前端 未结 9 806
无人共我
无人共我 2020-11-29 02:23

I need to create an out-of-process COM server (.exe) in C# that will be accessed by multiple other processes on the same box. The component has to be a single process becaus

相关标签:
9条回答
  • 2020-11-29 02:38

    The visual studio project "CSExeCOMServer" that you can find here (All-in-One), gives a full example.

    0 讨论(0)
  • 2020-11-29 02:41

    ActiveX.NET, is a true Out-Of-Proc (EXE) COM Server implementation in C#.NET. This one has a cleaner implementation compared to the original CSExeCOMServer, published in Code.MSDN.

    ActiveX.NET has features like it does use a .NET Message Pump (instead of native) and uses MEF Plugin model, so that the EXE Server is decoupled and can be shared among multiple COM Plugins, which can be developed independently

    0 讨论(0)
  • 2020-11-29 02:49

    You can use RegistrationServices.RegisterTypeForComClients, which is the managed equivalent of CoRegisterClassObject - for sample code see here.

    0 讨论(0)
提交回复
热议问题