ImageGear Professional v18.2 > API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > User Dictionary Functions > IG_REC_UD_state_get |
Inquires information about any type of change in the User dictionary, like adding or deleting UDitems.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_REC_UD_state_get( LPAT_BOOL pChanged ); |
Name | Type | Description |
pChanged | LPAT_BOOL | Address of a variable to get the modified flag. |
This function does not process image pixels.
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(); |
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.