原因:缺少MFC
步骤一:工具、获取工具和功能、在使用C++的桌面开发里面选上:用于x86和x64的Visual C++ MFC
五分钟左右安完
编译又发生了错误
错误:#error: Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]
解决方案:
Project -> "project" Properties -> Configuration Properties -> C/C++ -> Advanced -> Show Includes:
YES(/showIncludes)
Project -> "project" Properties -> Configuration Properties -> General -> Project Defaults -> Use of MFC :
Use MFC in a shared DLL
成功!