stdafx.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // stdafx.h : 标准系统包含文件的包含文件,
  2. // 或是经常使用但不常更改的
  3. // 特定于项目的包含文件
  4. //
  5. #pragma once
  6. #include "targetver.h"
  7. // Windows 头文件:
  8. #define WIN32_LEAN_AND_MEAN // 从 Windows 头文件中排除极少使用的信息
  9. #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // 某些 CString 构造函数将是显式的
  10. #define _AFX_NO_MFC_CONTROLS_IN_DIALOGS // 移除对话框中的 MFC 控件支持
  11. #ifndef VC_EXTRALEAN
  12. #define VC_EXTRALEAN // 从 Windows 头文件中排除极少使用的信息
  13. #endif
  14. #define _CRT_SECURE_NO_DEPRECATE
  15. #include <afx.h>
  16. #include <afxwin.h> // MFC 核心组件和标准组件
  17. #include <afxext.h> // MFC 扩展
  18. #ifndef _AFX_NO_OLE_SUPPORT
  19. #include <afxdtctl.h> // MFC 对 Internet Explorer 4 公共控件的支持
  20. #endif
  21. #ifndef _AFX_NO_AFXCMN_SUPPORT
  22. #include <afxcmn.h> // MFC 对 Windows 公共控件的支持
  23. #endif // _AFX_NO_AFXCMN_SUPPORT
  24. // Windows 头文件:
  25. #include <windows.h>
  26. #include <iostream>
  27. #include <string.h>
  28. #include <vector>
  29. using namespace std;
  30. // TODO: 在此处引用程序需要的其他头文件
  31. //#include "..\common\HW_DataHeader.h"
  32. #undef ASSERT //启用 mLog.Log 需要添加这个预编译,否则编译不通过
  33. #include "Log4CPP.Logger.hpp"
  34. #include "Log4CPP.TLSLog.Tracing.hpp"
  35. #include "mLog.Log4CPP.hpp"
  36. #include "CommonData.h"
  37. #include "CommonMessage.h"
  38. //#include ".\PDicomInclude\DicomLib.hpp"
  39. namespace CCOS
  40. {
  41. namespace Dev
  42. {
  43. class IODriver;
  44. }
  45. }
  46. extern HMODULE hMyModule;
  47. using tCallPredate = std::function <LRESULT(void *,UINT, WPARAM, LPARAM)>;