title: Input Box in an MFC CWinApp
body: <p>I want to use a simple input box in vc++ mfc. I did created a dialog called IDD_DIALOG1, and added a text box. I added a public variable for the input box and created a class call CInputDlg. Now I use the following code but I face with error:</p>
  
  <pre><code>CInputDlg dialog;
  if (dialog.DoModal() == IDOK) 
  {
      m[nodeTemp][i] = weight;
  }
  </code></pre>
  
  <p>the error is:</p>
  
  <pre><code>Error   2   error C2065: 'CInputDlg' : undeclared identifier    c:\users\omid\documents\visual studio 2008\projects\shortest path\shortest path\shortest pathdlg.cpp    294
  </code></pre>
  
  <p>what's the problem? can anyone help me please?</p>