Click here to Skip to main content
15,891,712 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I compile a program which under 32bits environment, now I run the program on a 64bits computer, it always pop out a messagebox which informed me that the program is not compatible to the OS, I googled and found some articles about this problem ,which said that the exe file needs a manifest file ,but when i added the manifest file o the exe file ,the message still pop out when I run the program .anyone know how to solve this ?thank for all the help ~
Posted
Updated 13-Sep-11 15:00pm
v2
Comments
Legor 14-Sep-11 5:53am    
Im not sure if this is dependent on the program. It sounds more like a OS configuration to me. Maybe you should look for this instead. Some configuration to turn off this kind of warnings.

1 solution

Procedure to run your application in 64 bit OS with VS 2005:
1) Start-> Program-> Microsoft Visual Studio 2005, now check the command prompt that contains the line "x64 check built environment".It may be in tools. just check it once.
2)Open this command prompt.
3) Type devenv and execute it.
4) now the IDE is open. Than select configuration win32 to x64 and build your program.
5) You can find one folder with name x64. Now execute this executable.

In VS2008 and VS 2010: I am not sure that they have x64 build environment. It might be you can directly open the IDE and change win32 to x64.
Note: I do not have any IDE right now, may be some steps are partially correct but with the help of that procedure you can create a build of x64.
 
Share this answer
 
Comments
markfilan 14-Sep-11 3:30am    
for VS2010, it's much more easy to build program of x64,but now i want the 32bits program running under the x64bits and not trigger the program compatibility assistant.
markfilan 14-Sep-11 3:32am    
and i tried the way which embed the manifest file in the exe file ,but It's not working at all. and it seemed that the manifest is the only way to fix the problem.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900