Solved

C# communication between two applications

Posted on 2009-05-05
3
5,083 Views
Last Modified: 2013-12-17
Hi i was wondering if there is any way to have 2 different programs and have them (for a lack of a better term) talk to each other in C#.

I guess it would be kind of like a client and server type of interaction, i fire a method in the client application and it tells the server application to do something.

Sorry if i'm not very clear on what i'm saying.
0
Comment
Question by:Anthony408
[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
3 Comments
 
LVL 63

Accepted Solution

by:
Fernando Soto earned 300 total points
ID: 24311037
Hi Anthony408;

There are a couple of ways of doing this - Have a look at the following articles.

Using .Net Remoting
.NET Remoting with an easy example
http://www.codeproject.com/KB/IP/Net_Remoting.aspx

Two-way Remoting with Callbacks and Events, Explained
http://www.codeproject.com/KB/IP/TwoWayRemoting.aspx

Using Shared Memory:
Interprocess Communication using Shared Memory
http://www.codeproject.com/KB/threads/sharedmemipc.aspx

Using Named Pipes
Inter-Process Communication in .NET Using Named Pipes, Part 1
http://www.codeproject.com/KB/threads/dotnetnamedpipespart1.aspx

Using WCF - .Net Framework 3.X
A Windows Communication Foundation (WCF) Overview
http://www.codeproject.com/KB/WCF/WCFOverview.aspx

Fernando
0
 
LVL 12

Assisted Solution

by:wht1986
wht1986 earned 200 total points
ID: 24311040
couple of ways to skin that cat

1. .NET remoting - great if everything is managed .NET applications
2. TCP/IP sockets
3. Message Queuing
4. WCF services (Havent played with these much yet)

I would suggest looking into .NET remoting
http://msdn.microsoft.com/en-us/library/kwdt6w2k(VS.71).aspx
0
 
LVL 1

Author Comment

by:Anthony408
ID: 24311063
Hey FernandoSoto and wht1986,

Thank you guys a lot, i haven't tried these yet but they look promising.

Thanks you both very much :D
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…

739 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