#pragma once #ifndef VC_EXTRALEAN #define VC_EXTRALEAN #endif #ifndef WINVER // 允许使用特定于 Windows 95 和 Windows NT 4 或更高版本的功能。 #define WINVER 0x0501 // 将此更改为针对于 Windows 98 和 Windows 2000 或更高版本的合适的值。 #endif #ifndef _WIN32_WINNT // 允许使用特定于 Windows NT 4 或更高版本的功能。 #define _WIN32_WINNT 0x0501 // 将此更改为针对于 Windows 2000 或更高版本的合适的值。 #endif #ifndef _WIN32_WINDOWS // 允许使用特定于 Windows 98 或更高版本的功能。 #define _WIN32_WINDOWS 0x0410 // 将此更改为针对于 Windows Me 或更高版本的合适的值。 #endif #ifndef _WIN32_IE // 允许使用特定于 IE 4.0 或更高版本的功能。 #define _WIN32_IE 0x0400 // 将此更改为针对于 IE 5.0 或更高版本的合适的值。 #endif #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // 某些 CString 构造函数将为显式的 #include // MFC 核心组件和标准组件 #include // MFC 扩展 #ifndef _AFX_NO_OLE_SUPPORT #include // MFC OLE 类 #include // MFC OLE 对话框类 #include // MFC 自动化类 #endif // _AFX_NO_OLE_SUPPORT #include // MFC 对 Internet Explorer 4 公共控件的支持 #ifndef _AFX_NO_AFXCMN_SUPPORT #include // MFC 对 Windows 公共控件的支持 #endif // _AFX_NO_AFXCMN_SUPPORT #include ////////////////////////////////////////////////////////////////////////////////// //链接代码 #ifndef _DEBUG #ifndef _UNICODE #pragma comment (lib,"../../链接库/Ansi/ServiceCore.lib") #pragma comment (lib,"../../链接库/Ansi/KernelEngine.lib") #else #pragma comment (lib,"../../链接库/Unicode/ServiceCore.lib") #pragma comment (lib,"../../链接库/Unicode/KernelEngine.lib") #endif #else #ifndef _UNICODE #pragma comment (lib,"../../链接库/Ansi/ServiceCoreD.lib") #pragma comment (lib,"../../链接库/Ansi/KernelEngineD.lib") #else #pragma comment (lib,"../../链接库/Unicode/ServiceCoreD.lib") #pragma comment (lib,"../../链接库/Unicode/KernelEngineD.lib") #endif #endif //////////////////////////////////////////////////////////////////////////////////