打开资源文件中的visual studio 2015错误无法打开“Winres.h” [英] visual studio 2015 error in opening resource file could not open "Winres.h"

查看:667
本文介绍了打开资源文件中的visual studio 2015错误无法打开“Winres.h”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了visual studio 2015并确保安装了MFC。当我尝试在我的项目中打开一个资源文件时,我收到一个错误"C:\Program Files(x86)\ Microsoft Visual Studio 14.0\VC\atlmfc\include\afxres.h", "RC1015:可以
未打开包含文件winres.h"

I have installed visual studio 2015 and made sure MFC is also installed. WHen i try to open a resource file in my project, i am getting an error "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\include\afxres.h", "RC1015:can not open include file winres.h"

我应该安装哪个SDK来解决此错误?我安装了Windows 8.1。 SDK和DDK,Windows 10 SDK和DDK但无法解决此错误。 

Which SDK i am supposed to install to resolve this error? I have installed Windows 8.1. SDK and DDK, Windows 10 SDK and DDK but could not resolve this error. 

如果需要修改任何包含目录,那么任何人都可以指出我是哪个需要准确更改的值和值是什么?

If any include directories need to be modified, then could any one please point out to me which is the macro that needs to be changed exactly and to what value?

推荐答案

winres.h是Windows SDK的一部分。 您确定您的项目设置是否配置为针对Windows MFC应用程序而不是来自DDK的内容?

winres.h is part of the Windows SDKs.  Are you sure that your project settings are configured to target a Windows MFC Application and not something from the DDK?

例如,随VS 2015一起安装的Windows 8.1 SDK包含winres.h at" ; C:\Program Files(x86)\ Windows Kits \8.1\include\um"

For example, the Windows 8.1 SDK installed with VS 2015 includes winres.h at "C:\Program Files (x86)\Windows Kits\8.1\include\um"


这篇关于打开资源文件中的visual studio 2015错误无法打开“Winres.h”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆