The application failed to initialize properly (0xc0150002)

后端 未结 5 1038
醉梦人生
醉梦人生 2020-12-11 09:09

I\'m trying to compile an SFML program I\'ve writting in Visual C++ 2010. It compiles fine, but when I run the executable I get this error:

The application          


        
相关标签:
5条回答
  • 2020-12-11 09:44

    If you are using Visual Studio 2015, please change the Platform Toolset to either VS 2010 or VS 2008. This option is available in Project->Properties->Configuration Properties->General.

    0 讨论(0)
  • 2020-12-11 10:01

    This is probably caused by SFML being compiled with another version of Visual C++ (I guess it's 2008 or even 2005). You are apparently missing the corresponding manifest file and msvc*.dll libraries. I would suggest recompiling SFML yourself using VS 2010 as it will save you a lot of trouble with manifest tweaking.

    0 讨论(0)
  • 2020-12-11 10:01

    Microsoft Visual Studio 2010 wasn't compatible with the 2008 builds of SFML. I fixed the problem by not using 2010 and using Dev-C++ insead.

    0 讨论(0)
  • 2020-12-11 10:05

    Run the exe in the VS 2010 debugger with the following settings:

    1. Debug->Options and Settings->Debugging->Output Window->Module Load Messages -- On
    2. Debug->Exceptions->Win32 Exceptions->c0000135 Unable to Locate DLL (should be On)

    Now, I think, it should help you identify which DLL fails to load.

    0 讨论(0)
  • 2020-12-11 10:09

    I fixed it by changing project properties runtime configuration: /MT for release and /MTd for debug (project properties > C/C++ > Code generation > Runtime library)

    0 讨论(0)
提交回复
热议问题