Communication between two WPF applications

我的梦境 提交于 2019-12-22 09:39:29

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!