title: Problem with comparing 2 CStrings that appear identical
body: <p>2 strings which appear to be equal, don't test as equal. I am using Microsoft Visual Studio 2008. I have added a watch for each CString, and in the watch window they appear identical. But when i try to compare them using:
  a = b;
  or a.compare(b);</p>
  
  <p>they don't compare.</p>
  
  <pre><code>bool CDictionaryClass::CheckWord(CString word)
  {
      // get starting position for search
      LPTSTR buff = word.GetBuffer(10);
  
      wchar_t testChar = tolower(buff[0]);
      int loc = int(testChar) - 97;
      int end,testLength,test;
      CString testWord = word.MakeLower(),dictWord;
  
      testLength = word.GetLength();
      word.ReleaseBuffer();
  
      if(loc == 25)
          end = GetNumberOfWords();
      else
          end = ABCPositions[loc+1];
  
      for(int i=ABCPositions[loc]; i&lt;end; i++)
          if(dictionaryWords[i].length == testLength)
              {
              dictWord = dictionaryWords[i].word.MakeLower();
              if(testWord == dictWord)
                  return true;
              }
  
      return false;
  }
  </code></pre>
  
  <p>I expect testWord to equal dictWord</p>