摘要: 当我们使用AppWizard来自动生成某些项目的时候,系统会自动把所需要include的头文件在stdafx.h中先include一下,这样,我们只需要直接include这个stdafx.h文件即可.因为同一个项目中的不同源文件CPP都包含相同的include文件,这样,为每个.CPP文件都重复include这些文件就显得很傻了。具体在stdafx.h中需要include什么头文件,取决于用户在AppWizard中的选择.比如:#include <afxwin.h> // MFC core and standard components#include <afxext.h&g 阅读全文
posted @ 2011-04-08 10:08 Alan Yang 阅读(383) 评论(0) 推荐(0) 编辑