问题
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.
- Try to run 32-bit program individually.
- 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