?
Solved

RPC Programming with Visual C#

Posted on 2004-10-20
4
Medium Priority
?
4,095 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 7

Accepted Solution

by:
God_Ares earned 500 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 500 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

718 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