L_DocFreeLanguages

#include "ltdoc.h"

L_INT EXT_FUNCTION L_DocFreeLanguages(hDoc, ppLangIds)

L_HDOC hDoc;

/* handle to the OCR document */

LANGIDS ** ppLangIds;

/* pointer to the array to be freed */

Frees the language array.

Parameter

Description

hDoc

Handle to the OCR document.

ppLangIds

Pointer to LANGIDS array that will be freed. This array is originally allocated using L_DocGetSelectedLanguages.

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 L_DocGetSelectedLanguages.

You can call this function after calling L_DocGetSelectedLanguages, when the ppLangIds array is no longer needed.

Required DLLs and Libraries

LTDOC

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_DocSelectLanguages, L_DocGetSelectedLanguages, L_DocSetCharLangsOptions, L_DocGetCharLangsOptions, L_DocIsCharEnabled, L_DocGetDefaultSpellLanguages

Topics:

OCR Functions: Languages

 

Working with Languages

Example

For an example, refer to L_DocGetSelectedLanguages.