如何避免出现错误RC1015:无法打开包含文件'l.esp` \ atxxres.rc'。在VC ++ 2013中 [英] How can I avoid the appearance of error RC1015: cannot open include file 'l.esp`\afxres.rc'. in VC++ 2013

查看:436
本文介绍了如何避免出现错误RC1015:无法打开包含文件'l.esp` \ atxxres.rc'。在VC ++ 2013中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我将旧的2005 VC ++ 6项目移植到新的好VC ++ 2013中。



每次我在资源编辑器中编辑某些内容时,这些行都显示在PROJECT.rc文件中:



 < span class =code-preprocessor> #if!defined(AFX_RESOURCE_DLL)||已定义(AFX_TARG_ESP)
#ifdef _WIN32
LANGUAGE 10 3
#pragma code_page(1252)
#endif // _ WIN32
#include res\PROJECT.rc2 //非Microsoft Visual C ++编辑的资源
#include l.esp \\ \\ afxres.rc //标准组件
#endif





这会产生错误:

 错误  1  错误 RC1015:无法打开包含文件'  l.esp\afxres.rc'。 PATH + PROJECT.rc 1672 1 PROJECT  





如果我删除 #includel。 esp\afxres.rc//标准组件行一切正常...



有没有办法永久删除它?



提前谢谢!

解决方案

在阅读Jochens帖子时我认为这是一个错误。我会尝试这些解决方法:



1.更改创建此文本的模板文件

2.创建一个空文件l.esp \ afxxres.rc所以rc编译器不会再喊了



对于这两种解决方案,你必须在VC-Installdir中搜索文件(2)或文本(1)afxres.rc



3.最后一种方法是在处理资源时更改语言。


看起来这可以通过右键单击资源视图中的PROJECT.rc项目并单击RESOURCE INCLUDES来解决。



之后在出现的窗口中,更改编译时指令。



我只是评论它是什么冒犯,到现在它已经不再出现了......



在这里交叉手指! :)

Hello all,

I'm porting an old 2005 VC++ 6 project into the new nice VC++ 2013.

Each time I edit something into the resource editor, those lines appear into the PROJECT.rc file:

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ESP)
#ifdef _WIN32
LANGUAGE 10, 3
#pragma code_page(1252)
#endif //_WIN32
#include "res\PROJECT.rc2"  // non-Microsoft Visual C++ edited resources
#include "l.esp\afxres.rc"          // Standard components
#endif



This makes the error:

Error   1   error RC1015: cannot open include file 'l.esp\afxres.rc'.   PATH+PROJECT.rc   1672    1   PROJECT



If I remove the #include "l.esp\afxres.rc" // Standard components line everything works correctly...

Is there any way to remove that permanently?

Thank you in advance!

解决方案

In reading Jochens postings I think it is a bug. I would try these workarounds:

1. change the template file which creates this text
2. create an empty file "l.esp\afxres.rc" so the rc-compiler wont yell anymore

For both solution you must search in the VC-Installdir for the file (2) or the text (1) "afxres.rc"

3. Last way is to change the language while working on the resources.


It looks like this can be solved by right clicking on the PROJECT.rc item in the Resource View and click on RESOURCE INCLUDES.

After that in the window that appears, change the Compile-time directives.

I've simply commented out what it was offensive and by now it has not appeared anymore...

Crossing fingers here! :)


这篇关于如何避免出现错误RC1015:无法打开包含文件'l.esp` \ atxxres.rc'。在VC ++ 2013中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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