问题
I have two WPF applications, I need these two applications to be able to communicate with each other. I just need these applications to send some notifications to each other and nothing more. I have found two techniques yet, one is using WCF, and another is using DDE. But to me these seems too much complicated for my requirement. Please suggest what is the simplest way to go about this? What other options I have?
回答1:
If they are both on the same network(otherwise you need to port foward the port that you use), you could make a TCP connection between them, both need a TCPlistener and a TCP client. This is easy to createre: here is a small tutorial
来源:https://stackoverflow.com/questions/12261401/communication-between-two-wpf-applications