fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
在windows console下编译 的时候遇到这个问题的
#include <afx.h>//因为要用到CString所以要包含这个头文件
#include <iostream>
#include <iostream>
using namespace std;
后来把头文件包含位置换了下 编译通过
#include <afx.h>//因为要用到CString所以要包含这个头文件
#include <iostream>
using namespace std;
error是因为将#include<stdafx.h>放在其它#include的后面了。
这个文件应该放在最前面。
这个文件应该放在最前面。