VS 2017: fatal error RC1015: cannot open include file 'winres.h'

c00000fd picture c00000fd · May 30, 2017 · Viewed 18k times · Source

I just downloaded Visual Studio 2017 and converted my dialog-based C++/MFC project with it (from Visual Studio 2008 SP1.) But then when I go to Resources it shows this error:

fatal error RC1015: cannot open include file 'winres.h'

enter image description here

And idea how to fix this?

Answer

Jeff T. picture Jeff T. · Dec 22, 2017

I just also came across this issue. It seems my friend missed to push some VS 2017 meta file to the server. My quick solution is to change the Windows SDK version to match the Windows 10 OS version or below. enter image description here

You can check your OS version from the cmd tool. enter image description here