acl/lib_acl_cpp/samples/winaio/stdafx.h

113 lines
3.2 KiB
C
Raw Normal View History

2014-11-19 00:25:21 +08:00
// stdafx.h : <20><>׼ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC>İ<EFBFBD><C4B0><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>
// <20><><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD>ʹ<EFBFBD>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĵ<EFBFBD>
// <20><>Ŀ<EFBFBD>ض<EFBFBD><D8B6>İ<EFBFBD><C4B0><EFBFBD><EFBFBD>ļ<EFBFBD>
#pragma once
#ifdef VC2003
#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN // <20><> Windows <20><>ͷ<EFBFBD><CDB7><EFBFBD>ų<EFBFBD><C5B3><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD>
#endif
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD>ƽ̨֮ǰ<D6AE><C7B0>ƽ̨<C6BD><CCA8><EFBFBD><EFBFBD><EFBFBD>޸<EFBFBD><DEB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ķ<EFBFBD><C4B6>
// <20>йز<D0B9>ͬƽ̨<C6BD><CCA8><EFBFBD><EFBFBD>Ӧֵ<D3A6><D6B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD>ο<EFBFBD> MSDN<44><4E>
#ifndef WINVER // <20><><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9> Windows 95 <20><> Windows NT 4 <20><><EFBFBD><EFBFBD><EFBFBD>߰汾<DFB0><E6B1BE><EFBFBD>ض<EFBFBD><D8B6><EFBFBD><EFBFBD>ܡ<EFBFBD>
#define WINVER 0x0400 //Ϊ Windows98 <20><> Windows 2000 <20><><EFBFBD><EFBFBD><EFBFBD>°汾<C2B0>ı<EFBFBD>Ϊ<EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD>ֵ<EFBFBD><D6B5>
#endif
#ifndef _WIN32_WINNT // <20><><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9> Windows NT 4 <20><><EFBFBD><EFBFBD><EFBFBD>߰汾<DFB0><E6B1BE><EFBFBD>ض<EFBFBD><D8B6><EFBFBD><EFBFBD>ܡ<EFBFBD>
#define _WIN32_WINNT 0x0400 //Ϊ Windows98 <20><> Windows 2000 <20><><EFBFBD><EFBFBD><EFBFBD>°汾<C2B0>ı<EFBFBD>Ϊ<EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD>ֵ<EFBFBD><D6B5>
#endif
#ifndef _WIN32_WINDOWS // <20><><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9> Windows 98 <20><><EFBFBD><EFBFBD><EFBFBD>߰汾<DFB0><E6B1BE><EFBFBD>ض<EFBFBD><D8B6><EFBFBD><EFBFBD>ܡ<EFBFBD>
#define _WIN32_WINDOWS 0x0410 //Ϊ Windows Me <20><><EFBFBD><EFBFBD><EFBFBD>°汾<C2B0>ı<EFBFBD>Ϊ<EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD>ֵ<EFBFBD><D6B5>
#endif
#ifndef _WIN32_IE // <20><><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9> IE 4.0 <20><><EFBFBD><EFBFBD><EFBFBD>߰汾<DFB0><E6B1BE><EFBFBD>ض<EFBFBD><D8B6><EFBFBD><EFBFBD>ܡ<EFBFBD>
#define _WIN32_IE 0x0400 //Ϊ IE 5.0 <20><><EFBFBD><EFBFBD><EFBFBD>°汾<C2B0>ı<EFBFBD>Ϊ<EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD>ֵ<EFBFBD><D6B5>
#endif
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // ijЩ CString <20><><EFBFBD><EFBFBD><ECBAAF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʽ<EFBFBD><CABD>
// <20>ر<EFBFBD> MFC <20><>ijЩ<C4B3><D0A9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȫ<EFBFBD><C8AB><EFBFBD>Եľ<D4B5><C4BE><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define _AFX_ALL_WARNINGS
#include <afxwin.h> // MFC <20><><EFBFBD>ĺͱ<C4BA>׼<EFBFBD><D7BC><EFBFBD><EFBFBD>
#include <afxext.h> // MFC <20><>չ
#include <afxdisp.h> // MFC <20>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD>
#include <afxdtctl.h> // Internet Explorer 4 <20><><EFBFBD><EFBFBD><EFBFBD>ؼ<EFBFBD><D8BC><EFBFBD> MFC ֧<><D6A7>
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // Windows <20><><EFBFBD><EFBFBD><EFBFBD>ؼ<EFBFBD><D8BC><EFBFBD> MFC ֧<><D6A7>
#endif // _AFX_NO_AFXCMN_SUPPORT
#include <afxsock.h> // MFC <20>׽<EFBFBD><D7BD><EFBFBD><EFBFBD><EFBFBD>չ
//////////////////////////////////////////////////////////////////////////////////////
#else
// stdafx.h : <20><>׼ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC>İ<EFBFBD><C4B0><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>
// <20><><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD>ʹ<EFBFBD>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĵ<EFBFBD>
// <20>ض<EFBFBD><D8B6><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD>İ<EFBFBD><C4B0><EFBFBD><EFBFBD>ļ<EFBFBD>
#pragma once
#ifndef _SECURE_ATL
#define _SECURE_ATL 1
#endif
#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN // <20><> Windows ͷ<><CDB7><EFBFBD>ų<EFBFBD><C5B3><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD>
#endif
// <20><><EFBFBD><EFBFBD> SDKDDKVer.h <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߰汾<DFB0>Ŀ<EFBFBD><C4BF><EFBFBD> Windows ƽ̨<C6BD><CCA8>
// <20><><EFBFBD><EFBFBD>ҪΪ<D2AA><CEAA>ǰ<EFBFBD><C7B0> Windows ƽ̨<C6BD><CCA8><EFBFBD><EFBFBD>Ӧ<EFBFBD>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> WinSDKVer.h<><68><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
// WIN32_WINNT <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ΪҪ֧<D2AA>ֵ<EFBFBD>ƽ̨<C6BD><CCA8>Ȼ<EFBFBD><C8BB><EFBFBD>ٰ<EFBFBD><D9B0><EFBFBD> SDKDDKVer.h<><68>
#include <SDKDDKVer.h>
//#ifndef _CRTDBG_MAP_ALLOC
//#define _CRTDBG_MAP_ALLOC
//#include <stdlib.h>
//#include <crtdbg.h>
//#endif
//#ifdef _DEBUG
//#define NEW new(_NORMAL_BLOCK, __FILE__, __LINE__)
//// Replace _NORMAL_BLOCK with _CLIENT_BLOCK if you want the
////allocations to be of _CLIENT_BLOCK type
//#else
//#define NEW new
//#endif // _DEBUG
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // ijЩ CString <20><><EFBFBD><EFBFBD><ECBAAF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʽ<EFBFBD><CABD>
// <20>ر<EFBFBD> MFC <20><>ijЩ<C4B3><D0A9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɷ<EFBFBD><C9B7>ĺ<EFBFBD><C4BA>Եľ<D4B5><C4BE><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define _AFX_ALL_WARNINGS
#include <afxwin.h> // MFC <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͱ<EFBFBD>׼<EFBFBD><D7BC><EFBFBD><EFBFBD>
#include <afxext.h> // MFC <20><>չ
#include <afxdisp.h> // MFC <20>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD>
#ifndef _AFX_NO_OLE_SUPPORT
#include <afxdtctl.h> // MFC <20><> Internet Explorer 4 <20><><EFBFBD><EFBFBD><EFBFBD>ؼ<EFBFBD><D8BC><EFBFBD>֧<EFBFBD><D6A7>
#endif
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC <20><> Windows <20><><EFBFBD><EFBFBD><EFBFBD>ؼ<EFBFBD><D8BC><EFBFBD>֧<EFBFBD><D6A7>
#endif // _AFX_NO_AFXCMN_SUPPORT
//#include <afxcontrolbars.h> // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϳؼ<CDBF><D8BC><EFBFBD><EFBFBD><EFBFBD> MFC ֧<><D6A7>
#include <afxsock.h>
#include <map>
//#ifndef _CRTDBG_MAP_ALLOC
//# define _CRTDBG_MAP_ALLOC
//# include <crtdbg.h>
//# include <stdlib.h>
//#endif
#endif