64 bits application starting 32 bits process

孤街醉人 提交于 2019-12-10 19:47:01

问题


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 ?


回答1:


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


来源:https://stackoverflow.com/questions/8489871/64-bits-application-starting-32-bits-process

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!