RemoveItemFromUserDictionary Example for C++ 5.0 and later

void CSample_COMDlg::OnButton33()
{
   int nRet = pRasterDoc->RemoveItemFromUserDictionary ("cities", "Peabody");
   if(nRet == 0) 
   {
      pRasterDoc->DictionaryFileName = "USERDIC1.DIC";
      pRasterDoc->DictionaryDefaultSection = "cities";

      pRasterDoc->SetUserDictionary (FALSE); 
   }
}