RC2247 : Cannot open Rc file : Resource explorer cannot load resource ; Load failed

前端 未结 2 837
栀梦
栀梦 2021-01-12 12:45

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

2条回答
  •  爱一瞬间的悲伤
    2021-01-12 13:22

    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 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
    

提交回复
热议问题