VS2017报错:
fatal error C1189: #error: MFC does not support WINVER less than 0x0501. Please change the definition of WINVER in your project properties or precompiled header。
解决方案:
请在stdafx.h头文件中添加以下二行。
#define WINVER 0x0602
#define _WIN32_WINNT 0x0602
例如:
相关文章: