Eugenia
Eugenia

Reputation: 11

How can I compile a 32bit program and run it on a 64 OS system such as Windows 7?

I have a program compiled in Visual Studio 2005 in an x86 System (32-bits), but when I try to run it in x64 OS (64-bits Windwos 7, Windows 2003, Windows 2008) it doesn't execute, I only get the following message:

 "myapp.exe has stopped working
 Windows is checking for a solution to the problem... "

I installed the Microsoft Visual C++ 2005 Redistributable Package for 32 and 64bits both(vcredist_x86.exe and vcredist_x64.exe) on the execution machine but the application still doesn't run.

I have also changed the option on the Development machine in the Configuration Manager Window to generate from 'Any CPU' to 'x86' platform, with the same result.

Is there any other configuration option, dll, lib, or package that allows to compile myapp in 32-bit and execute in 64-bits?

Thanks for your suggestions.

Eugin.

Upvotes: 1

Views: 844

Answers (1)

mikerobi
mikerobi

Reputation: 20878

You don't need to recompile your program to run on a 64bit OS, there is some other bug that is causing it to crash.

Upvotes: 4

Related Questions