title: MFC edit control update
body: <p>I try to update an edit control's text, using it's added variable, which is a <code>CString</code> but i'm failing it.</p>
  
  <pre><code>m_sNrAuto = "some text";  
  UpdateData(TRUE);
  </code></pre>
  
  <p>I also tried using <code>UpdateWindow()</code>, but the edit control remains blank. I know i can do it by using <code>SetWindowText()</code>, but i also saw some snippets where <code>SetWindowText()</code> it's not used, the update is done by passing a value to an affiliated CString. </p>