stdafx.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // stdafx.h : 标准系统包含文件的包含文件,
  2. // 或是经常使用但不常更改的
  3. // 特定于项目的包含文件
  4. #pragma once
  5. #ifndef VC_EXTRALEAN
  6. #define VC_EXTRALEAN // 从 Windows 头中排除极少使用的资料
  7. #endif
  8. #include "targetver.h"
  9. #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // 某些 CString 构造函数将是显式的
  10. // 关闭 MFC 对某些常见但经常可放心忽略的警告消息的隐藏
  11. #define _AFX_ALL_WARNINGS
  12. #include <afxwin.h> // MFC 核心组件和标准组件
  13. #include <afxext.h> // MFC 扩展
  14. #include <afxdisp.h> // MFC 自动化类
  15. #ifndef _AFX_NO_OLE_SUPPORT
  16. #include <afxdtctl.h> // MFC 对 Internet Explorer 4 公共控件的支持
  17. #endif
  18. #ifndef _AFX_NO_AFXCMN_SUPPORT
  19. #include <afxcmn.h> // MFC 对 Windows 公共控件的支持
  20. #endif // _AFX_NO_AFXCMN_SUPPORT
  21. #include <BCGCBProInc.h> // BCGPro Control Bar
  22. #include "halconcpp/HalconCpp.h"
  23. //#include "opencv2/opencv.hpp"
  24. #include <string>
  25. using namespace std;//放在前
  26. using namespace HalconCpp;
  27. //using namespace cv;
  28. #ifdef _UNICODE
  29. #if defined _M_IX86
  30. #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
  31. #elif defined _M_X64
  32. #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
  33. #else
  34. #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
  35. #endif
  36. #endif