您好。我需要解决一个问题。我有2个exe文件。一个exe需要调用一个方法,它在第二个exe中返回一个字符串。这两个exe都是c#程序。第二个exe是一个总是在后台运行的程序。两者都在同一台计算机上。
有什么方法可以解决这个问题吗?
编辑:忘了提到exe文件不在同一个上版本。第二个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 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的方法并返回值
发布评论