#include "ltdoc2.h"
L_LTDOC2_API L_INT EXT_FUNCTION L_Doc2FreeLanguages(hDoc, ppLangIds)
Frees the language array.
Handle to the OCR document.
Pointer to a DOC2_LANGIDS array that will be freed. This array is originally allocated using any of the functions L_Doc2GetSupportedLanguages or L_Doc2GetSelectedLanguages.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Frees the associated memory for the ppLangIds parameter, allocated by a previous call to the L_Doc2GetSelectedLanguages function.
Call this function after calling the L_Doc2GetSelectedLanguages function, when the ppLangIds array is no longer needed.
Required DLLs and Libraries
For an example, refer to L_Doc2GetSelectedLanguages.