Andy M
Andy M

Reputation: 6065

64 bit application starting 32 bit process

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

Answers (1)

Azodious
Azodious

Reputation: 13882

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: https://web.archive.org/web/20120103081542/http://www.techsupportalert.com/content/how-windows7-vista64-support-32bit-applications.htm

Upvotes: 4

Related Questions