ImageGear Professional DLL v17.1 for Windows Accusoft
IG_REC_UD_state_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_state_get

Glossary Item Box

Inquires information about any type of change in the User dictionary, like adding or deleting UDitems.

Declaration:

  Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_UD_state_get(
   LPAT_BOOL pChanged
);

Arguments:

pChanged Address of a variable to get the modified flag.

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:

If the returned pChanged value is TRUE, then the User dictionary has been modified since the last IG_REC_UD_save saving action or since opening the dictionary with the IG_REC_UD_edit_open call.

Example:

  Copy Code
AT_ERRCOUNT ErrCount = 0;
BOOL bStateChanged = FALSE;

ErrCount += IG_REC_UD_set(NULL, NULL);
ErrCount += IG_REC_UD_edit_open();

ErrCount += IG_REC_UD_item_add("Section_B", L"New_Item", 0);
ErrCount += IG_REC_UD_state_get(&bStateChanged);

ErrCount += IG_REC_UD_edit_close();

©2012. Accusoft Corporation. All Rights Reserved.