调用另一个已经运行的exe的方法并返回值

编程入门 行业动态 更新时间:2024-10-10 05:21:03
本文介绍了调用另一个已经运行的exe的方法并返回值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

您好。我需要解决一个问题。我有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的方法并返回值

本文发布于:2023-11-05 02:44:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1559696.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:返回值   方法   exe

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!