stdafx.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // stdafx.h : 标准系统包含文件的包含文件,
  2. // 或是经常使用但不常更改的
  3. // 特定于项目的包含文件
  4. //
  5. #pragma once
  6. #include "targetver.h"
  7. // 关闭 MFC 对某些常见但经常被安全忽略的警告消息的隐藏
  8. #define _AFX_ALL_WARNINGS
  9. #include <afxwin.h> // MFC 核心和标准组件
  10. //#include <afxext.h> // MFC 扩展
  11. //#include <afxdisp.h> // MFC 自动化类
  12. //
  13. //#include <afxdtctl.h> // Internet Explorer 4 公共控件的 MFC 支持
  14. //#ifndef _AFX_NO_AFXCMN_SUPPORT
  15. //#include <afxcmn.h> // Windows 公共控件的 MFC 支持
  16. //#endif // _AFX_NO_AFXCMN_SUPPORT
  17. #define WIN32_LEAN_AND_MEAN // 从 Windows 头文件中排除极少使用的信息
  18. // Windows 头文件:
  19. #include <windows.h>
  20. // TODO: 在此处引用程序需要的其他头文件
  21. #include "Log4CPP.Logger.hpp"
  22. #include "Log4CPP.TLSLog.Tracing.hpp"
  23. #include "mLog.Log4CPP.hpp"
  24. namespace CCOS
  25. {
  26. namespace Dev
  27. {
  28. class IODriver;
  29. }
  30. }
  31. extern HMODULE hMyModule;
  32. using tCallPredate = std::function <LRESULT(void*, UINT, WPARAM, LPARAM)>;
  33. extern "C" __declspec(dllexport) CCOS::Dev::IODriver * __cdecl GetIODriver ();
  34. extern "C" __declspec(dllexport) CCOS::Dev::IODriver * __cdecl CreateIODriver();
  35. //extern "C" __declspec(dllexport) int __cdecl GetDeviceManager ();