调用另一个已经运行的exe的方法并返回值 [英] Call a method of another already running exe and return value

查看:91
本文介绍了调用另一个已经运行的exe的方法并返回值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。我需要解决一个问题。我有2个exe文件。一个exe需要调用一个方法,它在第二个exe中返回一个字符串。 这两个exe都是c#程序。第二个exe是一个总是在后台运行的程序。两者都在同一台
计算机上。


有什么方法可以解决这个问题吗?


编辑:忘了提到exe文件不在同一个.net上版本。第二个exe文件比第一个更新。




解决方案


你好。我需要解决一个问题。我有2个exe文件。一个exe需要调用一个方法,它在第二个exe中返回一个字符串。 这两个exe都是c#程序。第二个exe是一个总是在后台运行的程序。两者都在同一台
计算机上。


有什么方法可以解决这个问题吗?









有多种选择。 请参阅
进程间通信


Hello. I need to solve a problem. I have 2 exe files. one exe need to call a method which is in second exe which returns a string back.  Both exe are c# programs. The second exe is a program which is alway running in the background. Both are on same computer.

Any ways to solve this?

Edit: forgot to mention that exe files are not on the same .net versions. second exe file is newer then first.


解决方案

Hello. I need to solve a problem. I have 2 exe files. one exe need to call a method which is in second exe which returns a string back.  Both exe are c# programs. The second exe is a program which is alway running in the background. Both are on same computer.

Any ways to solve this?




There are various alternatives.  See Interprocess Communications


这篇关于调用另一个已经运行的exe的方法并返回值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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