2012年10月1日 星期一

Visual Studio 2012 MFC build error

When you create any MFC application, there is always the error:

image

image

 

and the build error:
image

I am sick of MS to provide us such a suck VS2012. How to fix it?

  1. install windows software development kit (SDK) Link here
  2. Remember the folder that you install
  3. Goto the project setting
    image
  4. Change the include directories:
    image
    Here:
    C:\Program Files (x86)\Windows Kits\8.0\Include
    C:\Program Files (x86)\Windows Kits\8.0\Include\shared
    C:\Program Files (x86)\Windows Kits\8.0\Include\WinRT
    C:\Program Files (x86)\Windows Kits\8.0\Include\um
    C:\Program Files (x86)\Windows Kits\8.0\Include\um\gl
  5. Rebuild it.

I don’t understand why the default SDK version is 7.0 and the default setting can not be modified. That’s really suck MS.

image

沒有留言: