从一个应用程序向另一个应用程序发送消息 [英] Send message from one application to another

查看:212
本文介绍了从一个应用程序向另一个应用程序发送消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

谁能告诉我如何从基于C#/VB.Net Windows的应用程序向另一个基于C ++的应用程序发送消息?

请帮帮我.
shafiq

解决方案

您要搜索的是"C#进程间通信".有多种方法可以完成此操作(远程处理,WCF,TCP/IP列表程序,甚至还有一条称为WM_BROADCAST的消息(或类似的消息).

选择哪种方法取决于程序的预期用途和使用的拓扑.


IPC(进程间通信)是在两个exe之间进行通信的最佳方法.文件.尝试使用进程间通信进行搜索,您将获得大量阅读使用的示例,以获取解决方案.

通过Window Messaging进行VB.NET,VB6和C#进程间通信 [ 解决方案

What you want to google is "C# interprocess communications". There are several ways to accomplish this (remoting, WCF, TCP/IP lister, and there''s even a message called WM_BROADCAST (or something like that).

Which method you choose is based on the program''s intended use and the topology on which it is used.


IPC (Inter process communication) is the best way to communicate between your two exe files. Try to search with Inter process communication and you will get number of read to use examples to get your solution.

VB.NET, VB6 and C# Interprocess communication via Window Messaging[^]


depending on your setup you can use WCF or even message queues. look at sql message queues they are light and work across many things. Also are your two applications on the same computer?


这篇关于从一个应用程序向另一个应用程序发送消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆