96 lines
5.5 KiB
C
96 lines
5.5 KiB
C
// stdafx.h : 标准系统包含文件的包含文件,
|
||
// 或是经常使用但不常更改的
|
||
// 特定于项目的包含文件
|
||
|
||
#pragma once
|
||
|
||
#ifndef VC_EXTRALEAN
|
||
#define VC_EXTRALEAN // 从 Windows 头中排除极少使用的资料
|
||
#endif
|
||
|
||
#include "targetver.h"
|
||
|
||
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // 某些 CString 构造函数将是显式的
|
||
|
||
|
||
|
||
#include <afxwin.h> // MFC 核心组件和标准组件
|
||
#include <afxext.h> // MFC 扩展
|
||
|
||
#ifndef _AFX_NO_OLE_SUPPORT
|
||
#include <afxole.h> // MFC OLE 类
|
||
#include <afxodlgs.h> // MFC OLE 对话框类
|
||
#include <afxdisp.h> // MFC 自动化类
|
||
#endif // _AFX_NO_OLE_SUPPORT
|
||
|
||
#ifndef _AFX_NO_DB_SUPPORT
|
||
#include <afxdb.h> // MFC ODBC 数据库类
|
||
#endif // _AFX_NO_DB_SUPPORT
|
||
|
||
#ifndef _AFX_NO_DAO_SUPPORT
|
||
#include <afxdao.h> // MFC DAO 数据库类
|
||
#endif // _AFX_NO_DAO_SUPPORT
|
||
|
||
#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 <afxwin.h>
|
||
#include <afxcontrolbars.h>
|
||
|
||
#include <boost\thread\win32\mfc_thread_init.hpp>
|
||
|
||
#define G300 //G200 or G300 or G400
|
||
|
||
#define HUAGAO_VER
|
||
|
||
#ifdef HUAGAO_VER
|
||
#define COMPANY_NAME TEXT("华高")
|
||
#define PRODUCT_NAME TEXT("华高扫描仪")
|
||
#ifdef G200
|
||
#define SCANNERNAME TEXT("Hi-5100")
|
||
#elif defined G300
|
||
#define SCANNERNAME TEXT("G300")
|
||
#elif defined G400
|
||
#define SCANNERNAME TEXT("G400")
|
||
#endif
|
||
#define CHM_DEFAULT_PATH TEXT("/twain_32/HuaGoScan/HuaGoScan TWAIN_Cs.chm")
|
||
#define DERIVERVERSON TEXT("HUAGOSCAN Driver Version 1.1.1.0")
|
||
#define COMPANY TEXT("Copyright HUAGOSCAN INFOR TECH CORP.2017")
|
||
#define DESIGNERVALUE TEXT("宁波华高信息科技有限公司")
|
||
#define ADDRESS TEXT("浙江省宁波市鄞州区学士路655号(信科大厦)C栋211")
|
||
#else
|
||
#define COMPANY_NAME TEXT("智本")
|
||
#define PRODUCT_NAME TEXT("高速扫描仪")
|
||
#define SCANNERNAME TEXT("XS8100")
|
||
#define CHM_DEFAULT_PATH TEXT("/twain_32/ZhibenScan/ZhibenScan TWAIN_Cs.chm")
|
||
#define DERIVERVERSON TEXT("ZhibenScan Driver Version 3.1.7.2")
|
||
#define COMPANY TEXT("copyright @2009 理想(中国)科学工业有限公司 All Rights reserved")
|
||
#define DESIGNERVALUE TEXT("理想(中国)科学工业有限公司")
|
||
#define ADDRESS TEXT("珠海市香洲区海滨南路52号中信南航国际广场3001、3002")
|
||
#endif /*HUAGAO_VER*/
|
||
|
||
#ifndef HUAGAO_SCAN
|
||
#define HUAGAO_SCAN TEXT("\\HuaGao Technology")
|
||
#endif
|
||
#ifndef TWAIN_INIPATH
|
||
#define TWAIN_INIPATH TEXT("\\TWAIN")
|
||
#endif //TWAIN_INIPATH
|
||
#ifndef TWAIN_DATA_PATH
|
||
#define TWAIN_DATA_PATH TEXT("\\DATA")
|
||
#endif //TWAIN_DATA_PATH
|
||
#ifndef TWAIN_JSON_NAME
|
||
#define TWAIN_JSON_NAME TEXT("Default.json")
|
||
#endif //TWAIN_INI_NAME
|
||
#ifndef TWAIN_JSON_PATH
|
||
#define TWAIN_JSON_PATH TEXT("\\HuaGao Technology\\TWAIN\\Default.json")
|
||
#endif
|
||
//#ifndef CHM_DEFAULT_PATH
|
||
//#define CHM_DEFAULT_PATH TEXT("/twain_32/HuaGoScan/HuaGoScan TWAIN_Cs.chm")
|
||
//#endif
|
||
|
||
|
||
|