#pragma once #ifndef VC_EXTRALEAN #define VC_EXTRALEAN // 从 Windows 头中排除极少使用的资料 #endif #include "targetver.h" #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // 某些 CString 构造函数将是显式的 #define _ATL_NO_AUTOMATIC_NAMESPACE // 避免类名称冲突 #include // ActiveX 控件的 MFC 支持 #include // MFC 扩展 #ifndef _AFX_NO_OLE_SUPPORT #include // MFC 对 Internet Explorer 4 公共控件的支持 #endif #ifndef _AFX_NO_AFXCMN_SUPPORT #include // MFC 对 Windows 公共控件的支持 #endif // _AFX_NO_AFXCMN_SUPPORT // 如果不希望使用 MFC 数据库类, // 请删除下面的两个包含文件 #ifndef _WIN64 #ifndef _AFX_NO_DB_SUPPORT #include // MFC ODBC 数据库类 #endif // _AFX_NO_DB_SUPPORT #ifndef _AFX_NO_DAO_SUPPORT #include // MFC DAO 数据库类 #endif // _AFX_NO_DAO_SUPPORT #endif // _WIN64