ImageGear Professional DLL v17.1 for Windows Accusoft
IG_REC_UD_section_first_get
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > User Dictionary Functions > IG_REC_UD_section_first_get

Glossary Item Box

Creates a listing of the sections in the User dictionary currently opened for editing by the IG_REC_UD_edit_open function.

Declaration:

  Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_UD_section_first_get(
   LPSTR pSection,
   AT_INT buflen
);

Arguments:

pSection Pointer to a buffer for the name of the first section in the User dictionary.
buflen Specifies the size of the buffer in bytes.

Return Value:

Returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

This function does not process image pixels.

Remarks:

This function should be used together with IG_REC_UD_section_next_get.

  1. The lengths of each section name never exceeds AM_MAX_UD_SECTION_NAME_LEN characters (including the terminating zero).
  2. The function appends IGW_LAST_ITEM_REACHED warning to the ImageGear error stack if there is no section in the User dictionary. Function IG_warning_check() returns non-zero value in this case, signaling that the list is complete.

Example:

  Copy Code
AT_ERRCOUNT ErrCount = 0;
AT_INT iSize = 1024;
LPSTR lpszFirst = (LPSTR) malloc(iSize);

ErrCount += IG_REC_UD_set("NEW_USER.DICT", "Section_A");
ErrCount += IG_REC_UD_edit_open();
ErrCount += IG_REC_UD_section_first_get(lpszFirst, iSize);

ErrCount += IG_REC_UD_edit_close();
free(lpszFirst);

©2012. Accusoft Corporation. All Rights Reserved.