简体   繁体   中英

How to establish the communication between the two Different EXEs

1.If A is a one windows forms application. 2.B is a another Windows forms application. 3. Have to Establish the connection between this applications how is it possible?

EXAMPLE:

IF I click the one button in the first program,the click event have to be occur in the second program, and the result going to be reflect to the first program.

If I Click the second program the click event will be occur into the first program and result going to be reflect in the second program

So How to establish this two programs communication using the C# windows Application if any one Know the Answer please help me.it's very important for me.

Following are some of the possible options.

1) communicate using WCF based inter process communication

2) communicate via simple file based approach(one exe writes and other monitors and read)

3) communicate via sockets

4) communicate via Windows Message Queues

This can be done using Named Pipes and WCF.

If you perform a search on Google named pipes wcf you should see enough information to get you started.

At a quick glance, I would say that this tutorial is a good starting point: http://www.switchonthecode.com/tutorials/wcf-tutorial-basic-interprocess-communication

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM