tags:

views:

177

answers:

1

The closest thing I've found is using Activator.CreateInstance, but you can't pass it a server name/account information.

What I would like to do is programmatically create a COM object on a different computer. (I know I can create it on a different computer by manipulating the component properties in the control panel, but I want to start the COM component on a different server dynamically, based on a user choice)

Is there a managed way to this, or should I p-invoke CoCreateInstanceEx

+3  A: 

No, you will need to use CoCreateInstanceEx via P/Invoke.

Andrew Hare