stdafx.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. // stdafx.h : 标准系统包含文件的包含文件,
  2. // 或是经常使用但不常更改的
  3. // 项目特定的包含文件
  4. #pragma once
  5. #ifndef VC_EXTRALEAN
  6. #define VC_EXTRALEAN // 从 Windows 标头中排除不常使用的资料
  7. #endif
  8. // 如果您必须使用下列所指定的平台之前的平台,则修改下面的定义。
  9. // 有关不同平台的相应值的最新信息,请参考 MSDN。
  10. #ifndef WINVER // 允许使用 Windows 95 和 Windows NT 4 或更高版本的特定功能。
  11. #define WINVER 0x0501 //为 Windows98 和 Windows 2000 及更新版本改变为适当的值。
  12. #endif
  13. #ifndef _WIN32_WINNT // 允许使用 Windows NT 4 或更高版本的特定功能。
  14. #define _WIN32_WINNT 0x0501 //为 Windows98 和 Windows 2000 及更新版本改变为适当的值。
  15. #endif
  16. #ifndef _WIN32_WINDOWS // 允许使用 Windows 98 或更高版本的特定功能。
  17. #define _WIN32_WINDOWS 0x0501 //为 Windows Me 及更新版本改变为适当的值。
  18. #endif
  19. #ifndef _WIN32_IE // 允许使用 IE 4.0 或更高版本的特定功能。
  20. #define _WIN32_IE 0x0501 //为 IE 5.0 及更新版本改变为适当的值。
  21. #endif
  22. #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // 某些 CString 构造函数将是显式的
  23. // 关闭 MFC 对某些常见但经常被安全忽略的警告消息的隐藏
  24. #define _AFX_ALL_WARNINGS
  25. #define WIN32_LEAN_AND_MEAN
  26. #include <afxwin.h> // MFC 核心和标准组件
  27. #include <afxext.h> // MFC 扩展
  28. #include <afxdisp.h> // MFC 自动化类
  29. #include <afxdtctl.h> // Internet Explorer 4 公共控件的 MFC 支持
  30. #ifndef _AFX_NO_AFXCMN_SUPPORT
  31. #include <afxcmn.h> // Windows 公共控件的 MFC 支持
  32. #endif // _AFX_NO_AFXCMN_SUPPORT
  33. #include <afxtempl.h>
  34. #include "sizecbar.h"
  35. #include "DockPageBar.h"
  36. #include "AutoHideBar.h"
  37. #include "kernel.h"
  38. #if 1
  39. #pragma comment(lib,"Log4C.lib")
  40. #include "log4c.h"
  41. #endif
  42. #pragma warning(disable:4267)
  43. #pragma warning(disable:4311)
  44. #pragma warning(disable:4312)
  45. #pragma warning(disable:4244)
  46. #include "Const.h"
  47. #include "resource.h"
  48. #include "Global.h"
  49. #include "MTVERIFY.H"
  50. //#include "winsock2.h"
  51. #include "Permissions.h"
  52. #pragma comment(lib,"Permissions.lib")
  53. #include <mmsystem.h>
  54. #pragma comment(lib,"winmm.lib")//导入声音头文件库
  55. #include "DBConnection.h"
  56. using namespace SToneUDB;
  57. #include "DBInterface.h"
  58. using namespace DBInterface;
  59. #define ULONG_PTR ULONG
  60. #include "gdiplus.h"
  61. using namespace Gdiplus;
  62. #pragma comment(lib, "gdiplus.lib")