-
大小: 206KB文件类型: .rar金币: 1下载: 0 次发布日期: 2021-06-13
- 语言: C/C++
- 标签: jtwain.dll 源码
资源简介
SCAN扫描程序中jtwain.dll文件源码。。。 C++编写。对应扫描程序里 https://download.csdn.net/download/qcy1121/2607400 的jtwain.dll源码
代码片段和文件信息
// Modified scavino.org version
#define VERSION 110 // version number times 100.
#include
#include
#include // memset memcpy
#include
#include “ijl.h“
#include “commdlg.h“
#include “twain.h“
#include “jtwain.h“
//------------ Constants and Macros
#define STATIC static
#define INT32 int
#define DATAGROUP unsigned
#define DSM_FILENAME “TWAIN_32.DLL“
#define DSM_ENTRYPOINT “DSM_Entry“
#define IsValidHandle(h) (h!=NULL)
#define HUGEWRITE(fh pb bc) ((INT32)_lwrite(fh pb bc))
#define FMEMSET(p v n) memset(p v n);
#define FMEMCPY(p q n) memcpy(p q n);
typedef enum {
ED_NONE
ED_START_TRIPLET_ERRS
ED_CAP_GET // MSG_GET triplet on a capability failed
ED_CAP_SET // MSG_SET triplet on capability failed
ED_DSM_FAILURE // TWAIN DSM returned TWRC_FAILURE
ED_DS_FAILURE // source returned TWRC_FAILURE
ED_END_TRIPLET_ERRS
ED_NOT_STATE_4 // operation invoked in wrong state
ED_NULL_HCON // MSG_GET returned a null container handle
ED_BAD_HCON // MSG_GET returned an invalid/unlockable container handle
ED_BAD_CONTYPE // returned container ConType is not valid.
ED_BAD_ITEMTYPE // returned container ItemType is not valid.
ED_CAP_GET_EMPTY // returned container has 0 items.
ED_CAP_SET_EMPTY // trying to restrict a cap to empty set
} ErrorDetail;
const char *pszErrDescrip[] =
{ “[no details available]“
““
“DAT_CAPABILITY/MSG_GET failed“
“DAT_CAPABILITY/MSG_SET failed“
“Source Manager operation failed“
“DataSource operation failed“
““
“TWAIN session not in State 4 (Source Open)“
“MSG_GET returned a NULL container handle“
“MSG_GET returned an invalid container handle“
“Returned container is not valid type“
“Returned container has invalid ItemType“
“Returned container is empty“
“App and source found NO values in common“
};
const char *pszRC[] = {
“TWRC_SUCCESS“
“TWRC_FAILURE“
“TWRC_CHECKSTATUS (‘tried hard‘)“
“TWRC_CANCEL“
“TWRC_DSEVENT“
“TWRC_NOTDSEVENT“
“TWRC_XFERDONE“
“TWRC_ENDOFLIST“
“TWRC_INFONOTSUPPORTED“
“TWRC_DATANOTAVAILABLE“
};
const char *pszCC[] = {
“TWCC_SUCCESS“
“TWCC_BUMMER (Failure due to unknown causes)“
“TWCC_LOWMEMORY“
“TWCC_NODS (No Data Source)“
“TWCC_MAXCONNECTIONS (DS is connected to max possible apps)“
“TWCC_OPERATIonerror (DS/DSM reported error app shouldn‘t)“
“TWCC_BADCAP (Unknown capability)“
“7 (undefined)“
“8 (undefined)“
“TWCC_BADPROTOCOL (Unrecognized triplet)“
“TWCC_BADVALUE (Data parameter out of range)“
“TWCC_SEQERROR (Triplet out of sequence)“
“TWCC_BADDEST (Unknown dest. App/Src in DSM_Entry)“
“TWCC_CAPUNSUPPORTED (Cap not supported by source)“
“TWCC_CAPBADOPERATION (Operation not supported by cap)“
“TWCC_CAPSEQERROR (Cap has dependancy on other cap)“
};
const char szInsuffMem[] = “Insufficient Memory“; // error message
#define WM_AU
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 54728 2000-12-27 00:00 jtwain_visual_studio_6\ijl.h
文件 64366 2010-07-23 14:27 jtwain_visual_studio_6\jtwain.cpp
文件 22837 2002-06-10 23:02 jtwain_visual_studio_6\jtwain.h
文件 5185 2002-06-10 23:18 jtwain_visual_studio_6\JTWAIN_VISUAL_STUDIO_6.dsp
文件 567 2002-06-10 22:54 jtwain_visual_studio_6\JTWAIN_VISUAL_STUDIO_6.dsw
文件 53760 2010-07-20 23:32 jtwain_visual_studio_6\JTWAIN_VISUAL_STUDIO_6.opt
文件 3666 2010-07-20 23:30 jtwain_visual_studio_6\JTWAIN_VISUAL_STUDIO_6.plg
文件 908 2010-07-23 23:06 jtwain_visual_studio_6\JTWAIN_VISUAL_STUDIO_6.sln
..A..H. 25088 2010-07-23 23:06 jtwain_visual_studio_6\JTWAIN_VISUAL_STUDIO_6.suo
文件 7081 2010-07-23 23:06 jtwain_visual_studio_6\JTWAIN_VISUAL_STUDIO_6.vcproj
文件 1401 2010-07-23 23:06 jtwain_visual_studio_6\JTWAIN_VISUAL_STUDIO_6.vcproj.HIME-091224NULL.quchunyi.user
文件 4634 2001-05-30 00:00 jtwain_visual_studio_6\lib\ijl15.lib
文件 485196 2001-05-30 00:00 jtwain_visual_studio_6\lib\ijl15l.lib
文件 5593 2010-07-23 10:25 jtwain_visual_studio_6\org_scavino_twain_JTwain.cpp
文件 1206 2010-07-22 09:29 jtwain_visual_studio_6\org_scavino_twain_JTwain.h
文件 34384 2010-07-21 15:38 jtwain_visual_studio_6\resource\jtwain.aps
文件 2943 2010-07-21 15:38 jtwain_visual_studio_6\resource\jtwain.rc
文件 400 2002-04-20 01:05 jtwain_visual_studio_6\resource\resource.h
文件 192776 2010-07-22 09:39 jtwain_visual_studio_6\twain.h
目录 0 2010-07-23 23:01 jtwain_visual_studio_6\debug
目录 0 2002-06-10 22:53 jtwain_visual_studio_6\lib
目录 0 2010-07-23 23:06 jtwain_visual_studio_6\release
目录 0 2010-07-21 15:38 jtwain_visual_studio_6\resource
目录 0 2010-07-23 23:06 jtwain_visual_studio_6
----------- --------- ---------- ----- ----
966719 24
- 上一篇:C++课程设计——停车场管理
- 下一篇:二分法解非线性方程
相关资源
- 原创一次性口令OneTimePasswordC语言源码
- DLT645-97/07报文解释器VC源码
- RSA加解密源码VC++实现
- 邮票问题C语言源码
- pop3协议的摆渡木马演示程序
- mfc实现画图板源码+实验报告
- cocos2dx3.0打地鼠源码
- 酒店管理系统源码完整版C++
- Windows文件系统过滤驱动开发教程(第
- 远程桌面(带C++源码)
- 一个基于C++实现的完整进行FTP应用管
- 基于vc++的波形显示源码
- C Socket通信多线程数据双向收发VS201
- VC++软键盘源码和QQ软键盘差不多哦
- 仿雷电游戏OpenGL源码C++版
- VC++制作程序安装向导完整源码实现
- 简易的VC++点对点文件传输
- 扫雷游戏c++源码实现
- 防火墙C++源码,测试可以运行
- 用c++自编的GPS单点定位程序源码
- 车牌识别源码
- OpenCV手势识别-手掌特征提取源码
- c++primerplus第六版源码
- 汉诺塔VC6.0可视化实现源码
-
Windows Media Pla
yer 控件做的简易音视 - 合并一个文件夹中的所有文件.cpp
- C利用循环左移函数流水灯
- C++统计票数的实现源码
- SHA-3keccak之C/C++官方源码
- vc++读取shp文件源码
评论
共有 条评论