if you only want to use win32, then #include <windows.h>
if you only want to use MFC, then #include "stdafx.h"
But it will be error if you
#include <windows.h>
#include "stdafx.h"
So if you don't know if this file will be used in MFC, then
#include <afxwin.h> is the best way. (HexaMesh2p5)
if you only want to use MFC, then #include "stdafx.h"
But it will be error if you
#include <windows.h>
#include "stdafx.h"
So if you don't know if this file will be used in MFC, then
#include <afxwin.h> is the best way. (HexaMesh2p5)
本文探讨了在使用Win32 API与MFC框架时如何正确包含头文件的方法,避免因同时包含<windows.h>与stdafx.h导致的错误,并推荐了通用解决方案。

428

被折叠的 条评论
为什么被折叠?



