64位应用程序启动32位进程 [英] 64 bits application starting 32 bits process

查看:673
本文介绍了64位应用程序启动32位进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的64位应用程序与.net 4.0,C#编码。



在此应用中,在某些时候,我要开始另一个 exe文件的使用下面的代码文件:

  l_process.StartInfo.FileName = _sFullFilePath; 
l_process.StartInfo.Verb =打开;
l_process.StartInfo.CreateNoWindow = TRUE;
l_process.StartInfo.Arguments = l_sParams;

l_process.Start();

现在,这个外部应用程序为32位环境(86)下编译,我得到以下错误:

  **指定的可执行文件是不适用于这个操作系统平台** 

它甚至有可能这样做?如果是的话,我怎么能管理,无需烦恼,开始从我的这个应用程序?


解决方案

通常情况下,没有额外的工作需要运行64位机器上的32位程序。




  1. 尝试单独运行32位程序。

  2. 阅读: HTTP:// WWW。 techsupportalert.com/content/how-windows7-vista64-support-32bit-applications.htm


I'm working on a 64 bits application coded with .Net 4.0, C#.

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();

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 ?

解决方案

Usually, no extra work is required to run a 32-bit program on 64-bit machine.

  1. Try to run 32-bit program individually.
  2. Read this: http://www.techsupportalert.com/content/how-windows7-vista64-support-32bit-applications.htm

这篇关于64位应用程序启动32位进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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