can't launch the MFC application on AMD64 operating system.

Hi,

       I have ported an application from 32 to 64 bit and trying to run on AMD64 OS but it prompts a follwing system error. 

 "Application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem."

system error code for this message is 14001.

Also, Windows event viewer displays the following message 

"Dependent Assembly Microsoft.Windows.Common-Controls could not be found and Last Error was The referenced assembly is not installed on your system."

Is it the problem with 64SDK version or 64bit WinXP version.Currently, I have 64-bit WindowXP with build 3790 (SP 1, version 1433) with AMD64 machine. 

Project option under C/C++ tab

/nologo /MTd /W3 /Zi /Od /I "$(PLATSDK)\Include" /I "." /I "..\$(ICE_DIVISION)infslib" /I ".\.." /I "$(DDKXPROOT)\inc\wxp" /D "WIN64" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "MFC_USE" /Fo"Debug64/" /Fd"Debug64/" /FD /Wp64 /EHsc /GS /c

Anbody can help me to reslove this

Thanks,
Kishore Wani




Answer this question

can't launch the MFC application on AMD64 operating system.

  • Fahad Habib

    Hi Josh,
         Yes you are right, in manifest file process architecture should be AMD64, earlier it was X86.

    Thanks,
    Kishore Wani


  • ckramer

    I have the same problem!

     I'm using vc7.0
    Compiling with PSDK.
    There is no manifest files

    I'm getting asserts and no ui.  My ui code is in a dll.  Win32 works great with no asserts, win64 does not work.  32bit version in the 64bit enviroment does not work either.

    No dll's missing from depends!

    Any help would be great!

    Cheers, Robin.

  • traitors

    Cool I'll try this.
    Thanks for the info :)
    -Robin

  • Marcello Savorani

    I have found that often that this kind of error has to do with a bad .manifest file. You might check that.

    -josh

  • pomone

    How did you port your application to 64bit With PSDK or VS2005

    Could you open your application in depends.exe and check what DLL is missing

    Thanks,
    Nikola Dudar
    Visual C++ Team
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm



  • kbradl1

     RobinW wrote:
    I have the same problem!
     I'm using vc7.0
    Compiling with PSDK.
    There is no manifest files
    I'm getting asserts and no ui.  My ui code is in a dll.  Win32 works great with no asserts, win64 does not work.  32bit version in the 64bit enviroment does not work either.

    It seems to be a bug in the latest PSDK (2003 SP1). I opend a support-request at MS regarding this issue.
    My issue, is that the Debug-DLL-Version of the MFC forgott to initialize some data... therefor an AV is produced. To overcome this problem, you can switch to the static-MFC.

    Greetings
      Jochen


  • can't launch the MFC application on AMD64 operating system.