-
twainapp.source.2.0.8
.NET TWAIN image scanner(Abstract
In Windows imaging applications, the most used API for scanning is TWAIN www.twain.org. Unfortunately, the new .NET Framework has no built-in support for TWAIN. So we have to work with the interop methods of .NET to access this API. This article doesn t explain this interop techniques, and good knowledge of the TWAIN 1.9 specifications is assumed! The sample code included doesn t present a finished library, only some essential steps for a minimal TWAIN adaption to .NET applications.
Details
First step was to port the most important parts of TWAIN.H, these are found in TwainDefs.cs. The real logic for calling TWAIN is coded in the class Twain, in file TwainLib.cs.. As the TWAIN API is exposed by the Windows DLL, twain_32.dll, we have to use the .NET DllImport mechanism for interop with legacy code. This DLL has the central DSM_Entry(), ordinal#1 function exported as the entry point to TWAIN. This call has numerous parameters, and the last one is of variable type! It was f)
- 2009-11-04 09:20:31下载
- 积分:1
-
fenzhi
#include <iostream.h>
int main()
{
int i(0),sum(0)
while (i<=100)
{
sum=sum+i
++i
}cout<<"sum="<<sum<<endl
return 0;
}
- 2009-12-11 22:03:44下载
- 积分:1
-
CSCommTest
说明: 串口驱动程序,在界面上能发送接收数据,主要是参照网上的教程实现的,代码能运行通过,是一个界面程序(Serial port driver, the interface can send receive data, mainly by reference to the realization of online tutorials, and code to run through, is an interface program)
- 2008-12-08 09:41:19下载
- 积分:1
-
EasySizeHD2
可缩放的界面编程 通过方便的宏来进行 并且内部控件也能自动调整大小(Scalable programming through a user-friendly interface to the macro and internal controls can also automatically adjust the size of)
- 2009-04-15 17:53:41下载
- 积分:1
-
MyDEA1.0
做DEA用的,功能很强大,大家可以试试看,真的很好用(DEA do use, very powerful, we can try, really well)
- 2014-02-05 17:32:37下载
- 积分:1
-
id3(c)
ID3 Algorithm that uses decision trees to classify a give data.
- 2013-10-24 02:17:42下载
- 积分:1
-
CAGD四种B样条绘制
vs2013环境下C#开发的B样条绘制小程序,包括均匀B样条,准均匀B样条,分段贝齐尔曲线,分均匀B样条
- 2023-07-17 09:50:03下载
- 积分:1
-
plot2cad
一段Matlab代码,能够实现Matlab绘制的波形在AutoCAD下绘制出来(A Matlab code, Matlab drawn waveform drawing in AutoCAD)
- 2013-04-22 22:13:13下载
- 积分:1
-
osgMFC
osg mfc 测试例子,主要涉及如何使用osg,具体请看源码
- 2015-11-11 10:05:01下载
- 积分:1
-
MatlabandVCinterfacesinimageanddataprocessing
Matlab与VC接口在图像及数据处理中的应用,需要的下(Matlab and VC interfaces in image and data processing needs of next)
- 2010-05-08 11:59:14下载
- 积分:1