title: Adding edit box to ATL dialog using ATL CEdit in CAxDialogImpl
body: <p>I have project on ATL(C++) VS2010. I have created a dialog class. With two buttons and want to add something like a textbox. I have read that is responsible for this component CEdit.</p>
  <pre><code>CEdit* pEdit = (CEdit*)GetDlgItem(IDC_EDIT1);
  </code></pre>
  <p><strong>1. But nowhere referred to as resource declare IDC_EDIT1.</strong></p>
  <p><strong>2. It is necessary to connect afxwin.h. I plugged in the library in stdafx.h on top.</strong></p>
  <p>It has issued me an error:</p>
  <pre><code>Building MFC application with /MD[d] (CRT dll version) requires MFC
  shared dll version. Please #define _AFXDLL or do not use /MD[d]
  </code></pre>
  <p>I thought that problem this.
  <a href="https://stackoverflow.com/questions/25031009/error-please-define-afxdll-or-do-not-use-mdd-occurs-even-after-making-chang">error Please #define _AFXDLL or do not use /MD[d] occurs even after making changes in Project Properties</a></p>
  <p>Then I got an error:</p>
  <pre><code>#error directive: WINDOWS.H already included. MFC apps must not #include
  </code></pre>
  <p>I deleted all references WINDOWS.H, but the error remained.</p>
  <p><strong>Is there a solution without using CEdit.</strong></p>
  <pre><code>CWindow textBox(GetDlgItem(IDC_EDIT1));
  textBox.SetWindowTextW(L&quot;hello&quot;);
  </code></pre>
  <p>But the question remains. <strong>As a resource to specify IDC_EDIT1?</strong>
  In general, where it should be specified, as stated, is there any examples. I could not find anything. Maybe because of my bad English.</p>
  <p>I add in Resource.h</p>
  <pre><code>#define IDC_EDIT1                       113
  </code></pre>
  <p>In file .rc i have two button:</p>
  <pre><code>DEFPUSHBUTTON   &quot;OK&quot;,IDOK,209,179,50,14
  PUSHBUTTON      &quot;Cancel&quot;,IDCANCEL,263,179,50,14
  </code></pre>
  <p>How add my IDC_EDIT1 in file .rc?</p>
  <pre><code>????     &quot;text&quot;,IDC_EDIT1,263,179,50,14
  </code></pre>