L_Doc2GetUserDictionarySection
#include "ltdoc2.h"
L_LTDOC2_API L_INT EXT_FUNCTION L_Doc2GetUserDictionarySection(hDoc, pSection, nSize, bFirst)
L_HDOC2 hDoc; |
/* handle to the OCR document */ |
L_CHAR * pSection; |
/* pointer to a buffer to be updated */ |
L_INT nSize; |
/* buffer size */ |
L_BOOL bFirst; |
/* flag */ |
Gets User dictionary sections.
Parameter |
Description |
|
hDoc |
Handle to the OCR document. |
|
pSection |
Pointer to a buffer to be updated with the name of the section, specified in the bFirst parameter, in the User dictionary. |
|
nSize |
Size in bytes, of the buffer in bytes. |
|
bFirst |
Flag specifying which section to get. Possible values are: |
|
|
Value |
Meaning |
|
TRUE |
Get the first section in the User dictionary. |
|
FALSE |
Gets the next section in the User dictionary. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
Gets a list of User dictionary sections.
The lengths of each section name can never exceed the DOC2_MAX_SECTION_NAME_LENGTH value (including the terminating zero).
Call this function multiple times to get each section in a User dictionary. The first time you call it, pass TRUE for bFirst. In each subsequent call, pass FALSE for bFirst, and LEADTOOLS will get the next section from the specified dictionary. To re-start the process, call this function again, and pass TRUE for bFirst.
Required DLLs and Libraries
LTDOC2 For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
See Also
Example
For an example, refer to L_Doc2GetUserDictionary.