1、error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher is recommended.
在工程的stdafx.h中,改为如下配置:
#ifndef WINVER #define WINVER 0x0501 #endif
#ifndef _WIN32_WINNT #define _WIN32_WINNT 0x0501 #endif
#ifndef _WIN32_WINDOWS #define _WIN32_WINDOWS 0x0501 #endif
#ifndef _WIN32_IE #define _WIN32_IE 0x0601 #endif
参考:https://msdn.microsoft.com/zh-cn/library/windows/desktop/aa383745(v=vs.85).aspx
2、error RC2104 : undefined keyword or key name: AFX_IDS_INVALID_ARG_EXCEPTION.
将包含"FX_IDS_INVALID_ARG_EXCEPTION"的头文件"afxres.h"(在......vs安装目录VCatlmfcinclude下)拷到工程文件夹下。