uv-twain/huagao/stdafx.h

98 lines
5.0 KiB
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 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 SCANNERNAME L"G300UV"
#define PRODUCT_NAME TEXT("高速扫描仪")
#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("\\HuaGao 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("\\HuaGao 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
#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