[英]RC2247 : Cannot open Rc file : Resource explorer cannot load resource ; Load failed
I have a win 32 project I'm working on and the resource file were working fine till yesterday. 我有一个win 32项目,我正在努力,资源文件工作正常,直到昨天。 Now when I try to open the resource file to edit, it crashes and gives me the following error:
现在当我尝试打开资源文件进行编辑时,它会崩溃并给我以下错误:
C://program files/Microsoft SDKs/Windows/v6.0A/include/prsht.h(0)
error RC2247: Symbol name too long
Can anybody tell me where I might be going wrong or where to look into. 任何人都可以告诉我可能出错的地方或在哪里调查。 The rc file is a very simple dialog box with a static text and a progress bar.
rc文件是一个非常简单的对话框,带有静态文本和进度条。
I had the error as well. 我也有错误。 The approach mentioned in the http://social.msdn.microsoft.com/Forums/{...} Link (in a comment from Michael Walz) should work.
http://social.msdn.microsoft.com/Forums/ {...}链接 (在Michael Walz的评论中)中提到的方法应该有效。 Here's what you have to do:
这是你要做的:
Find the part where the windows headers are included. 找到包含Windows标头的部分。 This might be the
"windows.h"
include, or if you use MFC, it is the <afxres.h>
include. 这可能是
"windows.h"
包含,或者如果使用MFC,则它是<afxres.h>
include。 Add the "prsht.h" header after your "windows.h"
include (this did the trick for me). 在你的
"windows.h"
包括之后添加“prsht.h”标题(这对我有用)。 Also surround it with the two lines containing APSTUDIO_HIDDEN_SYMBOLS, to hide the lines from the resource editor. 同时用包含APSTUDIO_HIDDEN_SYMBOLS的两行包围它,以隐藏资源编辑器中的行。 It should look like this:
它应该如下所示:
#define APSTUDIO_HIDDEN_SYMBOLS
#include "windows.h"
#include "prsht.h"
#undef APSTUDIO_HIDDEN_SYMBOLS
1.download a tool named ResEdit
,if you can't find this tool,can email to me. 1.下载一个名为
ResEdit
的工具,如果找不到这个工具,可以发邮件给我。 juxuan_xatu@126.com juxuan_xatu@126.com
2.open the *.rc file. 2.打开* .rc文件。
3.click everyone diadlag, save it. 3.点击所有人diadlag,保存它。
4.then use vc2008 to open it again. 4.然后使用vc2008再次打开它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.