Solved

C# communication between two applications

Posted on 2009-05-05
3
5,203 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

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

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…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

635 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