MFC/ATL app installation fails on AMD x64
-
mardi 21 août 2012 01:27
I have a x86 MFC/ATL application, ported from VS2008, that installs and runs properly on Intel-based x86 and x64 machines, but when I install it on a AMD x64 PC, the installation goes ok, but gives me an error when I run the app. Using the Dependency Walker, it shows that it is loading the x64 versions of MFC100 and ATL100. It loads the correct (x86) versions on Intel machines.
Any idea where I should start looking?
Toutes les réponses
-
mardi 21 août 2012 03:29
...but gives me an error when I run the app.
What error?
Did you install the C++ runtime redistributables on the target machine?
-
mardi 21 août 2012 13:44
"The application was unable to start correctly (0xc000007b)."
I am using InstallShield Express 2011 and included the following merge modules:
Visual C++ 10.0 ATL (x86)
Visual C++ 10.0 CRT (x86)
Visual C++ 10.0 MFC (x86)
Visual C++ 10.0 MFCLOC (x86)
As I said, it installs and runs fine on Intel. Does the AMD need different x86 merge modules?
-
mardi 21 août 2012 18:44Also, I am compiling under Visual Studio 2010.
-
jeudi 23 août 2012 21:59Bump.
-
jeudi 23 août 2012 22:39
This is a very odd problem, David. As far as I'm aware, the x86 modules should run equally on AMD and Intel processors.
I'm curious if you recompile the application using the /MT switch, thereby eliminating the need to redistribute the merge modules, whether the application would run on the target machine.
- Marqué comme réponse Elegentin XieMicrosoft Contingent Staff, Moderator jeudi 30 août 2012 10:14

