mirror of http://192.168.1.51:8099/lmh188/twain3.0
102 lines
5.0 KiB
C
102 lines
5.0 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 <afxcontrolbars.h>
|
||
|
||
#define G400
|
||
|
||
#ifdef G200
|
||
//#define ISG100
|
||
#ifdef ISG100
|
||
#define SCANNERNAME L"G100"
|
||
#else
|
||
#define SCANNERNAME L"G200"
|
||
#endif
|
||
#endif
|
||
|
||
#ifdef G300
|
||
#define SCANNERNAME L"G300"
|
||
#endif
|
||
|
||
#ifdef G400
|
||
#define SCANNERNAME L"G400"
|
||
#endif
|
||
|
||
|
||
//#ifdef HUAGAO_VER
|
||
#define COMPANY_NAME TEXT("华高")
|
||
#define PRODUCT_NAME TEXT("高速扫描仪")
|
||
|
||
#define TWAIN_NAME L"HUAGOSCAN TWAIN"
|
||
#define HG_VERSION_INFO L"HUAGOSCAN Driver Version 3.3.2.3"
|
||
#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_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
|
||
#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
|
||
//#endif /*HUAGAO_VER*/
|
||
|
||
|
||
|
||
static const int kMaxInfoBuffer = 256;
|
||
#define GBYTES 1073741824
|
||
#define MBYTES 1048576
|
||
#define KBYTES 1024
|
||
#define DKBYTES 1024.0 |