Reputation: 6065
I'm working on a 64 bit 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 bit 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?
Upvotes: 4
Views: 4027
Reputation: 13882
Usually, no extra work is required to run a 32-bit program on 64-bit machine.
Upvotes: 4