ImageGear for C and C++ on Windows v19.6 - Updated
IG_REC_output_codepage_first_get
API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Output Functions > IG_REC_output_codepage_first_get

Starts the enumeration of the available Code Pages and returns the name of the first one.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_output_codepage_first_get(
   LPSTR pCodePageName,
   AT_INT nBufferLength
);

Arguments:

Name Type Description
pCodePageName LPSTR Pointer of a buffer for the name of the first available Code Page.
nBufferLength AT_INT Length of pCodePageName buffer.

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.

Example:

 
Copy Code
AT_ERRCOUNT ErrCount = 0;
LPSTR lpszCodepage = 0;
AT_INT iCodepageLen = AM_MAX_CP_NAME_LEN;
lpszCodepage = (LPSTR) malloc(iCodepageLen);
ErrCount += IG_REC_output_codepage_first_get(lpszCodepage, iCodepageLen);
free(lpszCodepage);

Remarks:

Maximal length of the code page name is AM_MAX_CP_NAME_LEN.