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

Checks whether the current Code Page setting contains all the characters of the current Language environment.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_output_codepage_check(
   LPCWSTR pMissingChrs,
   AT_INT nBufferSize
);

Arguments:

Name Type Description
pMissingChrs LPCWSTR Pointer of a buffer to hold any missing characters returned by the function.
nBufferSize AT_INT Specifies the size of the pMissingChrs buffer in bytes. It must be large enough to hold all the characters and the terminating zero.

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; HIG_REC_IMAGE higRecImage = 0; HIGEAR higImage = 0; AT_INT iMissingLen = 1024; LPWSTR lpszMissing = 0;

 ErrCount += IG_load_file("Image.tif", &higImage);  ErrCount += IG_REC_image_import(higImage, &higRecImage); lpszMissing = (LPWSTR) malloc(iMissingLen);

 //...

 ErrCount += IG_REC_spelling_is_enabled_set(TRUE); ErrCount += IG_REC_correction_is_enabled_set(TRUE); ErrCount += IG_REC_spelling_language_set(IG_REC_LANG_ENG); ErrCount += IG_REC_languagesplus_set(L"AaBbCc");  ErrCount += IG_REC_image_recognize(higRecImage); ErrCount += IG_REC_output_codepage_check((LPCWSTR)lpszMissing, iMissingLen); //...

 free(lpszMissing); ErrCount += IG_REC_image_delete(higRecImage); ErrCount += IG_image_delete(higImage);

Remarks:

The function checks language selection, the LanguagesPlus characters, and any characters listed as FilterPlus characters.