简体   繁体   English

RC2247:无法打开Rc文件:资源管理器无法加载资源; 加载失败

[英]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.

相关问题 错误 RC2247:符号名称太长 (winnt.h) - error RC2247: Symbol name too long (winnt.h) 无法为 Windows 编译 PuTTY:致命错误 RC1015:无法打开包含文件“winresrc.h” - Failed to compile PuTTY for Windows: fatal error RC1015: cannot open include file 'winresrc.h' resource.rc文件中返回多个资源 - Multiple resources returned in resource.rc file Qt 自动生成的.rc 文件无法打开包含文件'windows.h' - Qt automatically generated .rc file cannot open include file 'windows.h' 将rc项嵌入Windows资源DLL文件有数量和大小限制吗? - Is there any number and size limit to embed rc entries to a Windows resource DLL file? 如何使用资源文件(* .rc)设置基于对话框的应用程序的样式 - How can I use a resource file (*.rc) to style a dialog-based application 无法加载资源(.resx)文件,因为它不受信任 - Unable to load resource (.resx) file because it is not trusted 你知道编辑/翻译资源(.rc)文件的好程序吗? - Do you know of a good program for editing/translating resource (.rc) files? 无法加载此类文件 - 所有gemfiles - Cannot load such file — All gemfiles 如何在mingw下从“resource.rc”生成“resource.h” - How to generate “resource.h” from “resource.rc” under mingw
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM