SelectLanguages Example for C++ 5.0 and later

void CSample_COMDlg::OnButton14()
{
   CString csString; 

   pRasterDoc->ActiveLanguagesCount = 1; 
   pRasterDoc->ActiveLanguage [0] = LANGID_ENGLISH; 

   int nRet = pRasterDoc->SelectLanguages ();
   if (nRet != 0) 
      AfxMessageBox(TEXT("Couldn't set English as the default language."));

   pRasterDoc->LanguageCharacterPlus = "Test Plus";
   pRasterDoc->LanguageCharacterPlusFilter = "Test Plus Filter";

   if (pRasterDoc->LanguageCharacterFilter != CHAR_FILTER_ALL) 
      pRasterDoc->LanguageCharacterFilter = CHAR_FILTER_ALL; 
}