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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DCOM and C#

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.b

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
 
i believe that technically DCOM, as based on COM, is more connected with VB/C++ than with C#. .Net Remoting is the RPC equivalent you should base your app on when writing in C#.
but i might be mistaken. i intended to write an application once, that had c++ dcom server and had to have a c# client. but things didnt work much as expected so i switched to client and server being written in c# using .Net Remoting for remote calls.


.Net Remoting, i believe, is based on DCOM, but for most of the part it is transparent to the coder


------------------------
 
Thanks

I realise now that mixing up C++ and C# wasnt the smartest thing to do in hindsight, we live and learn.

Its only a small program so I think i might just re-write the COM component in C++ because the client has to be in C++.

I think this would be easier than learning about .Net remoting in the short term. I am a little confused as i was under the impression that C# could easily interact with any type of component.

Thanks

Frank
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top