Nicomsoft OCR: Developer's Guide


Scan_Create


Syntax

C++:int Scan_Create(HCFG CfgObj, HSCAN* ScanObj)
C#:int Scan_Create(int CfgObj, out int ScanObj)
Visual Basic:Function Scan_Create(ByVal CfgObj As Integer, ByRef ScanObj As Integer) As Integer
Java:int Scan_Create(HCFG CfgObj, HSCAN ScanObj)
Delphi:function Scan_Create(CfgObj:HCFG; out ScanObj:HSCAN):integer


Description

Creates a new Scan object. The object will be used for scanning documents with TWAIN-compatible devices. Only one Scan object can be created in an application. Do not try to create several Scan objects.


Parameters

CfgObj [IN] – the Config object that will be used for getting options.
ScanObj [OUT] – the variable that will get the identifier of the new Scan object.


Return value

Zero if success, otherwise an error code.


Remarks

For more details, see the OCR Objects section.


Example

See the sample code for the Scan_Enumerate function.