Solved

RPC Programming with Visual C#

Posted on 2004-10-20
4
4,072 Views
Last Modified: 2012-08-13
Hello Every one

i need to know how to develop an application that is based on Remote Procedure Calling (RPC) in Visul C#.NET.
kindly help me

Thanks for Anticipation

Bye
0
Comment
Question by:zazzy123
4 Comments
 
LVL 7

Accepted Solution

by:
God_Ares earned 125 total points
ID: 12357404
try remoting,.. once your hooked,.. you don't want back to dcom, corba, mess with idl etc,..

here's an example,.. it's suposed to be a whiteboard,.. and it's created as an demo for a friend of mine.

the sample is 1.1 compiant and uses delegates.


I would reccomend this to be your seccond example,.. but you have to start somewhere,..

link: http://www.briolas.nl/coding/remoting/remote.zip  it's server and client all in one...

--- well that's an example,.. so how does one do it?

shared:
-make a shared interface in a dll,.. start with something simple such as a get int and set int.

server:
-make an object that implements this interface and inherits form marshalobjectbyref
-register a channel and put your object in there as avalible.

client:
-register channel
-activate object with activator
-call object as if it was your one


hope it helps?

regards

Floris Briolas




0
 
LVL 3

Assisted Solution

by:aacool
aacool earned 125 total points
ID: 12358191
Basically, the replacement for DCOM and RPC-based communication is .NET Remoting. You can still do RPC-type calls from unmanaged code, but the .NET Remoting framework takes care of marshaling, by-reference and by-value.  Ingo Rammer, has, what I consider the best book on .NET Remoting - his website is http://www.thinktecture.com/Resources/RemotingFAQ/default.html - there is also a newsgroup microsoft.public.dotnet.framework.remoting

What specifically are you trying to achieve with RPC?

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now