64 位应用程序启动 32 位进程 [英] 64 bits application starting 32 bits process
本文介绍了64 位应用程序启动 32 位进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个使用 .Net 4.0、C# 编码的 64 位应用程序.
I'm working on a 64 bits application coded with .Net 4.0, C#.
在这个应用程序中,在某些时候,我需要使用以下代码启动另一个 exe 文件:
In this application, at some point, I need to start another exe file using the following code :
l_process.StartInfo.FileName = _sFullFilePath;
l_process.StartInfo.Verb = "Open";
l_process.StartInfo.CreateNoWindow = true;
l_process.StartInfo.Arguments = l_sParams;
l_process.Start();
现在,这个外部应用程序正在 32 位环境 (x86) 下编译,出现以下错误:
Now, this external application being compiled under 32 bits environment (x86), I get the following error :
**The specified executable is not valid for this OS platform**
甚至有可能这样做吗?如果是,我怎样才能在没有问题的情况下设法从我的应用程序启动这个应用程序?
Is it even possible to do so ? If yes, how can I manage to start this application from mine without having troubles ?
推荐答案
通常,在 64 位机器上运行 32 位程序不需要额外的工作.
Usually, no extra work is required to run a 32-bit program on 64-bit machine.
- 尝试单独运行 32 位程序.
- 阅读:http://www.techsupportalert.com/content/how-windows7-vista64-support-32bit-applications.htm
这篇关于64 位应用程序启动 32 位进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文