简体   繁体   English

在两个C#应用程序(32位和64位)之间进行IPC的最佳方法是什么?

[英]What's the best way to IPC between two C# apps (32bit and 64bit)

One is 64bit, the other is 32bit. 一个是64位,另一个是32位。 I'm currently doing it while making the 32bit app console, and reading the output. 我目前正在制作32位应用程序控制台,并读取输出。 Is there a better way? 有没有更好的办法? My data is text. 我的数据是文本。

EDIT: Both executable are on the same machine. 编辑:两个可执行文件都在同一台计算机上。

If you are constrained to .NET 2.0 then there are a few ways you can do it: 如果您受限于.NET 2.0,则可以通过以下几种方法进行:

  1. if the two apps are on different machines, you can use sockets, or .net Remoting (depending on the complexity of interaction) 如果两个应用程序位于不同的计算机上,则可以使用套接字或.net Remoting(取决于交互的复杂性)
  2. if the two apps are on the same machine, .net Remoting is an ok choice. 如果两个应用程序在同一台计算机上,则.net Remoting是一个不错的选择。

The fact that they are 32 or 64 bit does not influence this in any way. 它们是32位还是64位的事实不会对此产生任何影响。

在.NET 2.0中,您可以使用Remoting

进行IPC程序是32位还是64位都没有关系,因此请选择所需的方法(请参阅此文章 )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM