L_Doc2FreeLanguages

#include "ltdoc2.h"

L_LTDOC2_API L_INT EXT_FUNCTION L_Doc2FreeLanguages(hDoc, ppLangIds)

L_HDOC2 hDoc;

/* handle to the OCR document */

DOC2_LANGIDS ** ppLangIds;

/* pointer to the array to be freed */

Frees the language array.

Parameter

Description

hDoc

Handle to the OCR document.

ppLangIds

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.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

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

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

Functions:

L_Doc2GetSupportedLanguages, L_Doc2GetLanguageFriendlyName, L_Doc2SelectLanguages, L_Doc2GetSelectedLanguages, L_Doc2SetCharLangsOptions, L_Doc2GetCharLangsOptions, L_Doc2GetDefaultSpellLanguages

Topics:

OCR Functions: Languages

 

Working with Languages

Example

For an example, refer to L_Doc2GetSelectedLanguages.