title: Errors in MFC dialog application
body: <p>I am learning MFC Dialog Applications and as the first try I did the tutorial  <a href="http://depts.washington.edu/cmmr/biga/chapter_tutorials/VC_Guide/CreatingDialogAppWithMFC7.pdf" rel="nofollow">explained here</a></p>
  
  <p>I am using visual Studio 2010 but when I run this I get errors as<br>
  <code>error C2664: 'DDX_Control' : cannot convert parameter 3 from 'CString' to 'CWnd &amp;'
  1&gt;\documents\visual studio 2010\projects\mfc\mfc\mfcdlg.cpp(75): error C2065: 'IDC_BUTTON1' : undeclared identifier
  1&gt;\documents\visual studio 2010\projects\mfc\mfc\mfcdlg.cpp(75): error C2065: 'IDC_BUTTON1' : undeclared identifier
  1&gt;\documents\visual studio 2010\projects\mfc\mfc\mfcdlg.cpp(76): error C2065: 'IDC_COMBO1' : undeclared identifier
  1&gt;\documents\visual studio 2010\projects\mfc\mfc\mfcdlg.cpp(76): error C2065: 'IDC_COMBO1' : undeclared identifier
  1&gt;</code>  </p>
  
  <p>I did exactly as mentioned in the note.  </p>
  
  <pre><code>void CMFCDlg::DoDataExchange(CDataExchange* pDX)
  {
      CDialogEx::DoDataExchange(pDX);
      DDX_Text(pDX, IDC_FIRSTNAME, m_strFirstName);
      DDX_Text(pDX, IDC_LASTNAME, m_strLastName);
      DDX_Control(pDX, IDC_TITLE, m_strTiltle);
      DDX_LBString(pDX, IDC_NAMELIST, m_strFullName);
      DDX_Control(pDX, IDC_NAMELIST, m_NameList);
  }  
  </code></pre>
  
  <p>As this is my first time doing anything in MFC applications I have no idea what went wrong.Can someone please help me to understand what is wrong?</p>