Solved

RPC Programming with Visual C#

Posted on 2004-10-20
4
4,078 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

831 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