SpecialRejectedCharacter Example for C++ 5.0 and later

void CSample_COMDlg::OnButton24()
{
   pRasterDoc->EnableSaveResultsToMemory = FALSE; 
   pRasterDoc->RecognitionDataFileName = "c:\\test.rdf";
   pRasterDoc->SpellLanguageID = LANGID_ENGLISH; 

   int nRet = pRasterDoc->Recognize (0, 1); 
   if (nRet == 0) 
   {
      if (lstrcmp(pRasterDoc->SpecialMissingSymbol, "^") != 0) 
         pRasterDoc->SpecialMissingSymbol = "^";
      
      if (lstrcmp(pRasterDoc->SpecialRejectedCharacter, "!") != 0) 
         pRasterDoc->SpecialRejectedCharacter = "!";
   }

   //...
   //... save recognition results using SaveDocument
   //...

   pRasterDoc->SaveDocument ("C:\\Ocr1.ocr"); 
}