RC2247: cannot open Rc file: resource explorer cannot load a resource; loading error

I have a win 32 project that I am working on and the resource file worked until yesterday. Now when I try to open the resource file for editing, 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 someone tell me where I can go wrong, or where to look? The rc file is a very simple dialog box with static text and a progress bar.

+4
source share
2 answers

I also had a mistake. The approach mentioned in http://social.msdn.microsoft.com/Forums/ {...} Link (in a comment by Michael Waltz) should work. Here is what you need to do:

Find the part where the window titles are included. It can be a "windows.h" include, or if you use MFC, it is <afxres.h> include. Add the title “prsht.h” after enabling "windows.h" (this did the trick for me). Also combine it with 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 
+9
source

1.Download the tool with the name ResEdit , if you can not find this tool, you can write to me by e-mail. juxuan_xatu@126.com

2. open the * .rc file.

3. Click on all the diadlag, save it.

4. Then use vc2008 to open it again.

-1
source

Source: https://habr.com/ru/post/1480643/


All Articles