如何在两个程序之间发送数据 [英] how to send data between two program

查看:113
本文介绍了如何在两个程序之间发送数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


i有2个程序,当我点击程序A中的按钮时它会打开程序B现在我想从程序A发送一些东西到程序B我该怎么办?



从以下评论中复制的其他信息[Nelek]

i希望从程序A向程序B发送一些信息并使用此程序B没有程序A就无法工作(意味着你只能从程序A打开它)我不希望程序B打开而不点击程序A中的按钮

解决方案

您可以使用:

1)文件

2)插座

3)命名管道

4)TCP数据包


C#进程间通信 [ ^ ]。

Hi i have 2 program and when i click the button in program A it will open program B and now i want to send something from program A to program B how can i do it?

additional information copied from comment below [Nelek]
i want to send some info from program A to program B and with this program B can't work without program A (means you just can open it from program A) and i don't want program B open without click the button in program A

解决方案

You can use :
1) a file
2) a socket
3) a named pipe
4) a TCP packet


C# inter-process communication[^].


这篇关于如何在两个程序之间发送数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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