Do you have the same problem the blank project you posted? I have tried and built your project using Windows 7 32 and 64 bit and XP 32 bit. All builds fine, no problem with finding SDKDDKVer.h.
You must have some problem with your dependencies path settings.
It is possible that you have transferred VS settings from one installation of VS to another, possibly from 32-bit to 64-bit (or vice versa) machine? If this is a case, remember that your path may include wrong folders names. For 32-bit system all applications are installed as default to C:\Program Files, while on 64-bit machine all 32bit apps are installed to Program Files (x86). This is a case for VS. All include files are in:
- C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include - original VS installation
- C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include - after installing 7.1 VS SDK
If you have other SDK packages installed you may have another folders with SDKDDKVer.h:
- C:\Program Files (x86)\Windows Kits\8.0\Include\shared
- C:\Program Files (x86)\Windows Kits\8.1\Include\shared
- C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include
- C:\Program Files\Microsoft SDKs\Windows\v7.0\Include
- C:\Program Files\Microsoft SDKs\Windows\v7.1\Include
In your project setting you should have the following paths for includes:
- $(VCInstallDir)include
- $(VCInstallDir)atlmfc\include
- $(WindowsSDK_IncludePath)
Note macros used. They should be inherited from parent’s default setrtings. You may have overridden path settings in Property manager, by editing setting saved in Microsoft.Cpp.Win32.user.props file.
It may have happened if your project is converted from earlier versions of VS.