Cannot open include file 'afxres.h' in VC2010 Express

后端 未结 8 1824
庸人自扰
庸人自扰 2021-01-30 02:01

I\'m trying to compile an old project using VS express 2010 but I get this error:

fatal error RC1015: cannot open include file \'afxres.h\'. from this cod

8条回答
  •  梦谈多话
    2021-01-30 02:38

    Even I too faced similar issue,

    fatal error RC1015: cannot open include file 'afxres.h'. from this code

    Replacing afxres.h with Winresrc.h and declaring IDC_STATIC as -1 worked for me. (Using visual studio Premium 2012)

    //#include "afxres.h"
    #include "WinResrc.h"
    #define IDC_STATIC  -1
    

提交回复
热议问题