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