Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C# and DCOM

Status
Not open for further replies.

millzy7

Programmer
Dec 9, 2003
96
US
Hi,

I'm trying to write an Out of proc DCOM server in C#. I have the Server written, its now a COM object so thats done.

Where i'm stuck is this. As far as I kmow, DCOM works by having a stub object on the machine that the server is running on, and then a proxy on each of the client machines that communicates with the stub object.

How are the stub and proxy objects created? I'm told that in C++, they are created automatically but I am developing this in C# so I need to know if it works the same. The client is written in C++ and the DCOM server is written in C#.

Any help or comments will be appreciated

Thanks

Millzy
 
if the Client is written in C++,you only have to create an Interop-Assembly in C# which speaks from your Client to the DCOM-Server I think. This Interop-Assembly generates at Runtime a COM Callable Wrapper which you can access in your C++-Applikation. You have to register the Interop-Assembly in the registry of the Client so that you can reference to it in your C++-App.

I hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top