123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #pragma once
- #include "targetver.h"
- #define WIN32_LEAN_AND_MEAN // 从 Windows 头文件中排除极少使用的内容
- #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // 部分 CString 构造函数将是显式的
- #define _AFX_NO_MFC_CONTROLS_IN_DIALOGS // 移除对话框中的 MFC 控件支持
- #ifndef VC_EXTRALEAN
- #define VC_EXTRALEAN // 从 Windows 头文件中排除极少使用的内容
- #endif
- #include <afx.h>
- #include <afxwin.h> // MFC 核心组件和标准组件
- #include <afxext.h> // MFC 扩展
- #ifndef _AFX_NO_OLE_SUPPORT
- #include <afxdtctl.h> // MFC 对 Internet Explorer 4 公共控件的支持
- #endif
- #ifndef _AFX_NO_AFXCMN_SUPPORT
- #include <afxcmn.h> // MFC 对 Windows 公共控件的支持
- #endif // _AFX_NO_AFXCMN_SUPPORT
- #include <iostream>
- // Windows 头文件
- #include <windows.h>
- #include <string>
- // 只需要包含一个头文件即可;
- #include "opencv2/opencv.hpp"
- //在引用gdi的相关头文件前,重新定义min、max;
- #ifndef min
- #define min
- #endif
- #ifndef max
- #define max
- #endif
- #include <comutil.h>
- #pragma comment(lib,"comsuppw.lib")
- #include <gdiplus.h>
- #pragma comment(lib, "gdiplus.lib")
|