|
// stdafx.h : 磊林 荤侩窍瘤父 磊林 函版登瘤绰 臼绰
|
// 钎霖 矫胶袍 器窃 颇老 棺 橇肺璃飘 包访 器窃 颇老捞
|
// 甸绢 乐绰 器窃 颇老涝聪促.
|
|
#pragma once
|
|
#ifndef _SECURE_ATL
|
#define _SECURE_ATL 1
|
#endif
|
|
#ifndef VC_EXTRALEAN
|
#define VC_EXTRALEAN // 芭狼 荤侩登瘤 臼绰 郴侩篮 Windows 庆歹俊辑 力寇钦聪促.
|
#endif
|
|
#include "targetver.h"
|
|
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // 老何 CString 积己磊绰 疙矫利栏肺 急攫邓聪促.
|
|
// MFC狼 傍烹 何盒苞 公矫 啊瓷茄 版绊 皋矫瘤俊 措茄 见扁扁甫 秦力钦聪促.
|
#define _AFX_ALL_WARNINGS
|
|
#include <afxwin.h> // MFC 琴缴 棺 钎霖 备己 夸家涝聪促.
|
#include <afxext.h> // MFC 犬厘涝聪促.
|
|
|
#include <afxdisp.h> // MFC 磊悼拳 努贰胶涝聪促.
|
|
|
|
#ifndef _AFX_NO_OLE_SUPPORT
|
#include <afxdtctl.h> // Internet Explorer 4 傍侩 牧飘费俊 措茄 MFC 瘤盔涝聪促.
|
#endif
|
#ifndef _AFX_NO_AFXCMN_SUPPORT
|
#include <afxcmn.h> // Windows 傍侩 牧飘费俊 措茄 MFC 瘤盔涝聪促.
|
#endif // _AFX_NO_AFXCMN_SUPPORT
|
|
#include <afxcontrolbars.h> // MFC狼 府夯 棺 牧飘费 阜措 瘤盔
|
|
|
#include "InspectionBase.h"
|
#include "DisplayMessage.h"
|
#include "StatusMonitor.h"
|
#include "BICommon.h"
|
|
static UINT g_nGridFixCellColor = RGB(144, 200, 246);
|
static UINT g_nGridFixFontColor = RGB(0, 0, 0);
|
static UINT g_nGridCellColor = RGB(255, 255, 255);
|
static UINT g_nGridCellColor_NonSelect = RGB(150, 150, 150);
|
static UINT g_nGridCellReadyColor = RGB(255, 255, 0);
|
static UINT g_nGridCellOnColor = RGB(255, 69, 0);
|
static UINT g_nGridCellOffColor = RGB(128, 191, 255);
|
static UINT g_nPropertyGridFixCellColor = RGB(150, 150, 150);
|
static UINT g_nPropertyGridFixFontColor = RGB(0, 0, 0);
|
static UINT g_nSequenceOffColor = RGB(0, 0, 0);
|
static UINT g_nSequenceOnColor = RGB(0, 180, 0);
|
|
//1. 采集模块
|
#include "../SDK/BlGrabber/include/FrameBufferController.h"
|
#include "../SDK/BlGrabber/include/GrabberControl.h"
|
#if _DEBUG
|
#pragma comment (lib, "../SDK/BlGrabber/lib/x64/Debug/BlGrabberD.lib")
|
#else
|
#pragma comment (lib, "../SDK/BlGrabber/lib/x64/Release/BlGrabber.lib")
|
#endif
|
|
#if HALCON_VISION_KEY
|
//2. 视觉日志模块
|
#include "../SDK/LogSDK/include/ILogger.h"
|
#include "../SDK/LogSDK/include/LogLib.h"
|
#if _DEBUG
|
#pragma comment(lib,"../SDK/LogSDK/lib/x64/Debug/Log.lib")
|
#else
|
#pragma comment(lib,"../SDK/LogSDK/lib/x64/Release/Log.lib")
|
#endif
|
|
//3. 视觉显示模块
|
#include "../SDK/BaseDisplaySDK/include/typesdef.h"
|
#include "../SDK/BaseDisplaySDK/include/BaseVision.h"
|
#include "../SDK/BaseDisplaySDK/include/IClsShape.h"
|
#include "../SDK/BaseDisplaySDK/include/IImageDisplay.h"
|
#include "../SDK/BaseDisplaySDK/include/BaseDisplayLib.h"
|
#if _DEBUG
|
#pragma comment(lib,"../SDK/BaseDisplaySDK/lib/x64/Debug/BaseDisplay.lib")
|
#else
|
#pragma comment(lib,"../SDK/BaseDisplaySDK/lib/x64/Release/BaseDisplay.lib")
|
#endif
|
|
//4. 视觉处理模块
|
#include "../SDK/BlVisionPro/include/IVisionRecipe.h"
|
#include "../SDK/BlVisionPro/include/ISoftVisionApp.h"
|
#include "../SDK/BlVisionPro/include/BlVisionLib.h"
|
#if _DEBUG
|
#pragma comment (lib, "../SDK/BlVisionPro/lib/x64/Debug/BlVisionProD.lib")
|
#else
|
#pragma comment (lib, "../SDK/BlVisionPro/lib/x64/Release/BlVisionPro.lib")
|
#endif
|
#endif
|
|
//5. AI模块
|
#include "../SDK/AIClient/include/AiDetectEx.h"
|
#if _DEBUG
|
#pragma comment (lib, "../SDK/AIClient/lib/AIClientD.lib")
|
#else
|
#pragma comment (lib, "../SDK/AIClient/lib/AIClient.lib")
|
#endif
|
|
//6. SIS底层模块
|
#ifdef _DEBUG
|
#pragma comment(lib, "../SDK/CHThreadPool/lib/x64/Release/CHThreadPoolD.lib")
|
#pragma comment(lib, "../SDK/SISControls/lib/x64/Release/SISControlsD.lib")
|
#pragma comment(lib, "../SDK/ConfigFileManager/lib/x64/Release/ConfigFileManagerD.lib")
|
#pragma comment(lib, "../SDK/SharedMapDll/lib/x64/Release/SharedMapDllD.lib")
|
#pragma comment(lib, "../SDK/SISBuffer/lib/x64/Release/SISBufferD.lib")
|
#pragma comment(lib, "../SDK/EdgeInspect/lib/x64/Release/EdgeInspectD.lib")
|
#pragma comment(lib, "../SDK/SISAssem/lib/x64/Release/SISAssemD.lib")
|
#pragma comment(lib, "../SDK/CHImageBuffer/lib/x64/Release/CHImageBufferD.lib")
|
#pragma comment(lib, "../SDK/OpenCV/opencv_3.1/lib/opencv_core310d.lib")
|
#pragma comment(lib, "../SDK/OpenCV/opencv_3.1/lib/opencv_highgui310d.lib")
|
#pragma comment(lib, "../SDK/OpenCV/opencv_3.1/lib/opencv_imgproc310d.lib")
|
#pragma comment(lib, "../SDK/OpenCV/opencv_3.1/lib/opencv_imgcodecs310d.lib")
|
#pragma comment(lib, "../SDK/EuresysCam/Lib/amd64/MultiCam.lib")
|
#pragma comment(lib, "FreeImage.lib")
|
#pragma comment(lib, "corapi.lib")
|
#pragma comment(lib, "SapClassBasic.lib")
|
#else
|
#pragma comment(lib, "../SDK/CHThreadPool/lib/x64/Release/CHThreadPool.lib")
|
#pragma comment(lib, "../SDK/SISControls/lib/x64/Release/SISControls.lib")
|
#pragma comment(lib, "../SDK/ConfigFileManager/lib/x64/Release/ConfigFileManager.lib")
|
#pragma comment(lib, "../SDK/SharedMapDll/lib/x64/Release/SharedMapDll.lib")
|
#pragma comment(lib, "../SDK/SISBuffer/lib/x64/Release/SISBuffer.lib")
|
#pragma comment(lib, "../SDK/EdgeInspect/lib/x64/Release/EdgeInspect.lib")
|
#pragma comment(lib, "../SDK/SISAssem/lib/x64/Release/SISAssem.lib")
|
#pragma comment(lib, "../SDK/CHImageBuffer/lib/x64/Release/CHImageBuffer.lib")
|
#pragma comment(lib, "../SDK/OpenCV/opencv_3.1/lib/opencv_core310.lib")
|
#pragma comment(lib, "../SDK/OpenCV/opencv_3.1/lib/opencv_highgui310.lib")
|
#pragma comment(lib, "../SDK/OpenCV/opencv_3.1/lib/opencv_imgproc310.lib")
|
#pragma comment(lib, "../SDK/OpenCV/opencv_3.1/lib/opencv_imgcodecs310.lib")
|
#pragma comment(lib, "../SDK/EuresysCam/Lib/amd64/MultiCam.lib")
|
#pragma comment(lib, "FreeImage.lib")
|
#pragma comment(lib, "corapi.lib")
|
#pragma comment(lib, "SapClassBasic.lib")
|
#endif
|
|
// #pragma comment(linker, "/entry:WinMainCRTStartup /subsystem:console")
|
|
#ifdef _UNICODE
|
#if defined _M_IX86
|
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
|
#elif defined _M_X64
|
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
|
#else
|
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
|
#endif
|
#endif
|