Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

C# communication between two applications

Posted on 2009-05-05
3
Medium Priority
?
5,607 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
3 Comments
 
LVL 64

Accepted Solution

by:
Fernando Soto earned 1200 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 800 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

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

879 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