mirror of http://192.168.1.51:8099/lmh188/uv-twain
128 lines
6.7 KiB
C
128 lines
6.7 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 数据库类MAKEHUAGAO
|
||
#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 <afxcontrolbars.h>
|
||
|
||
#define SCANNERNAME L"G300UV"
|
||
|
||
#define PRODUCT_NAME TEXT("高速扫描仪")
|
||
#define MAKEHUAGAO
|
||
#ifdef MAKEHUAGAO
|
||
|
||
#define TWAIN_NAME L"HUAGOSCAN UVTWAIN"
|
||
#define HG_VERSION_INFO L"HUAGOSCAN Driver Version 3.3.2.5"
|
||
|
||
#ifndef TWAIN_JSON_PATH
|
||
#define TWAIN_JSON_PATH TEXT("\\HUAGOSCAN Technology\\TWAIN\\Default.json")
|
||
#endif
|
||
|
||
#ifndef CHM_DEFAULT_PATH
|
||
#define CHM_DEFAULT_PATH TEXT("/twain_32/HUAGOSCAN/HUAGOSCAN TWAIN_Cs.chm")
|
||
#endif
|
||
|
||
#ifndef HUAGAO_SCAN
|
||
#define HUAGAO_SCAN TEXT("\\HUAGOSCAN Technology")
|
||
#endif
|
||
|
||
#ifndef LIMIT_INFO
|
||
#define LIMIT_INFO TEXT("Copyright HUAGOSCAN INFOR TECH CORP.2017")
|
||
#endif // !LIMIT_INFO
|
||
|
||
#ifndef COMPANY_NAME
|
||
#define COMPANY_NAME TEXT("宁波华高信息科技有限公司")
|
||
#endif // !COMPANY_NAME
|
||
|
||
#ifndef COMPANY_ADDRESS
|
||
#define COMPANY_ADDRESS TEXT("浙江省宁波市鄞州区学士路655号(信科大厦)C栋211")
|
||
#endif // !COMPANY_NAME
|
||
#else defined MAKERTW
|
||
|
||
#define TWAIN_NAME L"RIGHTWAYSCAN UVTWAIN"
|
||
#define HG_VERSION_INFO L"RIGHTWAYSCAN Driver Version 3.3.2.5"
|
||
|
||
#ifndef TWAIN_JSON_PATH
|
||
#define TWAIN_JSON_PATH TEXT("\\RighTWay Technology\\TWAIN\\Default.json")
|
||
#endif
|
||
|
||
#ifndef CHM_DEFAULT_PATH
|
||
#define CHM_DEFAULT_PATH TEXT("/twain_32/RighTWayScan/RighTWayScan TWAIN_Cs.chm")
|
||
#endif
|
||
|
||
#ifndef HUAGAO_SCAN
|
||
#define HUAGAO_SCAN TEXT("\\RighTWay Technology")
|
||
#endif
|
||
|
||
#ifndef LIMIT_INFO
|
||
#define LIMIT_INFO TEXT("Copyright RIGHTWAYSCAN INFOR TECH CORP.2001")
|
||
#endif // !LIMIT_INFO
|
||
|
||
#ifndef COMPANY_NAME
|
||
#define COMPANY_NAME TEXT("湖北瑞特威网络工程有限公司")
|
||
#endif // !COMPANY_NAME
|
||
|
||
#ifndef COMPANY_ADDRESS
|
||
#define COMPANY_ADDRESS TEXT("洪山区工农兵湾樱花大厦B-2102")
|
||
#endif // !COMPANY_NAME
|
||
#endif // MAKEHUAGAO
|
||
#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_ERROR_PATH
|
||
#define TWAIN_ERROR_PATH TEXT("\\ERRORLOG\\")
|
||
#endif // !TWAIN_ERROR_PATH
|
||
|
||
#ifndef TWAIN_ERROR_LOG_NAME
|
||
#define TWAIN_ERROR_LOG_NAME TEXT("errorlog.txt")
|
||
#endif // !TWAIN_ERROR_LOG_NAME
|
||
|
||
#ifndef TWAIN_JSON_NAME
|
||
#define TWAIN_JSON_NAME TEXT("Default.json")
|
||
#endif //TWAIN_INI_NAME
|
||
|
||
|
||
|
||
static const int kMaxInfoBuffer = 256;
|
||
#define GBYTES 1073741824
|
||
#define MBYTES 1048576
|
||
#define KBYTES 1024
|
||
#define DKBYTES 1024.0 |