今天写了一个win32的控制台程序,由于我要使用一个cstring类,添加了#include <afx.h> ,然后一编译就出现了error : WINDOWS.H already included这个错误,后来网上一搜,知道了解决办法。
办法如下:把#include <afx.h> 放#include "stdafx.h"的下面,然后在工程设置里面,把not using MFC改成其它任何两个就行了
今天写了一个win32的控制台程序,由于我要使用一个cstring类,添加了#include <afx.h> ,然后一编译就出现了error : WINDOWS.H already included这个错误,后来网上一搜,知道了解决办法。
办法如下:把#include <afx.h> 放#include "stdafx.h"的下面,然后在工程设置里面,把not using MFC改成其它任何两个就行了