[VC2010 Express] RC1015: cannot open include file 'afxres.h'
VC 2010 Express 사용.
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"
Express 에서는 MFC를 지원하지 않으므로 위의 코드를 아래과 같이 수정한다.
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#define APSTUDIO_HIDDEN_SYMBOLS
#include "windows.h"
#undef APSTUDIO_HIDDEN_SYMBOLS
=============================================================================================
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
2 TEXTINCLUDE MOVEABLE PURE
BEGIN
"#include ""afxres.h""\r\0"
END
위 코드도 아래와 같이 수정한다.
2 TEXTINCLUDE MOVEABLE PURE
BEGIN
"#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
"#include ""windows.h""\r\n"
"#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
END