在两个不同的应用程序之间传输数据

在两个不同的应用程序之间传输数据

问题描述:

亲爱的所有人,

我有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?[^]