Solved

C# communication between two applications

Posted on 2009-05-05
3
4,738 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 62

Accepted Solution

by:
Fernando Soto earned 300 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

728 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

9 Experts available now in Live!

Get 1:1 Help Now