1.未定义标识符“CString”
解决:添加头文件#include <afxext.h> // MFC 扩展
2.添加后头文件顺序为
#include <atlbase.h>
#include <Mshtml.h>
#include <afxext.h> // MFC 扩展
报错:error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
此时修改头文件顺序即可:
#include <afxext.h> // MFC