在两个不同的应用程序之间传输数据 [英] Transfer data between two different applications c#

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

问题描述

亲爱的所有人,

我有2个使用c#创建的不同应用程序.我需要第一种应用程序的形式将数据集发送到第二种应用程序的另一种形式.我该怎么做?

Dear all,

I have 2 different applications created using c#. I need that a form of the 1st application to send a set of data to another form in the 2nd application. How can I do that?

推荐答案

您需要的称为进程间通信(IPC).有多种方法可以执行此操作,具体取决于您的需求.

看看这篇关于主题的好文章:
使用共享内存和InterlockedCompareExchange的快速IPC通信(已更新!) [ ^ ]
What you need is called Inter Process Communication (IPC). There are various ways to do this, depending on your needs.

Take a look at this nice article on subject:
Fast IPC Communication Using Shared Memory and InterlockedCompareExchange (updated!)[^]


上的C#中的进程间通信(IPC)== 8& sbo = kw"target =" _ blank"title =" New Window> ^ ].
There are many articles[^] on Inter Process Communication (IPC) in C#, here at CodeProject.


看看之前提出的类似问题:如何连接两个不同的应用程序? [
Have a look at similar question asked earlier: how to connect two different applications?[^]


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

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