Nicomsoft OCR: Developer's Guide


Engine_SetDataDirectory


Syntax

C++:int Engine_SetDataDirectory(UNICODECHAR* DirectoryPath)
C#:int Engine_SetDataDirectory(string DirectoryPath)
Visual Basic:Function Engine_SetDataDirectory(ByVal DirectoryPath As String) As Integer
Java:int Engine_SetDataDirectory(String DirectoryPath)
Delphi:function Engine_SetDataDirectory(DirectoryPath: PWCHAR):integer


Description

Sets the path to the folder with the NSOCR binary files (path to ".dll" files). It can be called before calling the Engine_Initialize or Engine_InitializeAdvanced functions only.


Parameters

DirectoryPath [IN] – a Unicode, null-terminated string that contains the full directory path.


Return value

Zero if success, otherwise an error code.


Remarks

By default, the folder with "NSOCR.dll" will be used as the directory with data files. Data files that are required for OCR (".lng", ".dat", etc.) will be checked in this folder and also in "..\Bin_common" directory.


Example

None.