Link to home
Start Free TrialLog in
Avatar of bobshoe
bobshoe

asked on

100+ errors

Hi all experts,

I am having problems with some code.  When it is compiled, it gives me over 100 errors (102 to be exact, after that point it says the compiler has exceeded the maximum limit).

I have been laboring over it for over an hour.  In the past, whenever this has happened, it was something simple.

Here is the code:
DWORD numwords = 0;
  CWaitCursor cur;

  UpdateData (TRUE);

  m_Results = "";

  switch (m_SearchType)
  { case (0): // Ascii
             numwords = m_Dict->SearchAscii (m_Results, m_Search1);
             break;

    case (1): // alphabet, a = 1, b = 2 etc
              numwords = m_Dict->SearchAlpha (m_Results, m_Search1);
              break;

    case (2): // Anagrams, i.e. cat = act
              numwords = m_Dict->SearchAnagrams (m_Results, m_Search2);
              break;

    case (3): // Palindromes, i.e. madam
              numwords = m_Dict->SearchPalindromes (m_Results, m_Search1);
              break;

    case (4): // Regular
              numwords = m_Dict->SearchRegular (m_Results, m_Search2);
              break;

    case (5): // Duplicates
              numwords = m_Dict->SearchDuplicates (m_Results, m_Search1);
              break;

    case (6): // Percentage thare are at least x percent vowels
              numwords = m_Dict->SearchPercentage (m_Results, "aeiouy", m_Search1);
              break;

    case (7): // Percentage thare are at least x percent consonant
              numwords = m_Dict->SearchPercentage (m_Results, "bcdfghjklmnpqrstvwxz", m_Search1);
              break;

    case (8): // Custom percentage.
              numwords = m_Dict->SearchPercentage (m_Results, (char *) m_Search2.operator LPCTSTR (), m_Search1);
              break;

    case (9): // Words that contain certain letters.
              numwords = m_Dict->SearchLetters (m_Results, (char *) m_Search2.operator LPCTSTR ());
              break;

    default: ASSERT (0);
  }

  if (numwords != 0)
  [ CString temp;
    temp.Format ("\r\n# words: %d", numwords);
    m_Results += temp;
  }

  UpdateData (FALSE);

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of thresher_shark
thresher_shark

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of thresher_shark
thresher_shark

If you have any questions, please feel free to ask!
Avatar of bobshoe

ASKER

Thanks! I knew it would be simple!