RC2247 : Cannot open Rc file : Resource explorer c

2019-02-18 08:20发布

问题:

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

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.

回答1:

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:

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


回答2:

1.download a tool named ResEdit,if you can't find this tool,can email to me. juxuan_xatu@126.com

2.open the *.rc file.

3.click everyone diadlag, save it.

4.then use vc2008 to open it again.