a simple workaround for this is to put the afxres.h header file in the same folder as your .sln file and then choose "Compile Solution". It should go smoothly without errors
Create empty text file and in it paste:
Code:
#include <windows.h>
#include <winuser.h>
#define IDC_STATIC (-1)
and then save the file as "afxres.h"
let me know if there any other problems