RC2247:无法打开Rc文件:资源浏览器无法加载资源;无法打开资源文件.加载失败 [英] RC2247 : Cannot open Rc file : Resource explorer cannot load resource ; Load failed

查看:297
本文介绍了RC2247:无法打开Rc文件:资源浏览器无法加载资源;无法打开资源文件.加载失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个正在进行的win 32项目,资源文件运行良好,直到昨天.现在,当我尝试打开资源文件进行编辑时,它崩溃并给我以下错误:

I have a win 32 project I'm working on and the resource file were working fine till yesterday. 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

任何人都可以告诉我哪里可能出问题或需要调查的地方. rc文件是一个非常简单的对话框,带有静态文本和进度条.

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.

推荐答案

我也遇到了错误.

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. Here's what you have to do:

找到包含Windows标头的部分.这可能是"windows.h"包含,或者,如果您使用MFC,则它是<afxres.h>包含.在您的"windows.h"包含之后添加"prsht.h"标头(这对我有用).还用包含APSTUDIO_HIDDEN_SYMBOLS的两行将其包围,以隐藏资源编辑器中的行.它应该看起来像这样:

Find the part where the windows headers are included. This might be the "windows.h" include, or if you use MFC, it is the <afxres.h> include. Add the "prsht.h" header after your "windows.h" include (this did the trick for me). Also surround it with the two lines containing APSTUDIO_HIDDEN_SYMBOLS, to hide the lines from the resource editor. It should look like this:

#define APSTUDIO_HIDDEN_SYMBOLS
#include "windows.h"
#include "prsht.h"
#undef APSTUDIO_HIDDEN_SYMBOLS

这篇关于RC2247:无法打开Rc文件:资源浏览器无法加载资源;无法打开资源文件.加载失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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