title: how do I set a value of a textbox in Visual C++
body: <p>how do I set a value of a textbox in Visual C++?
  I have been trying the following but the line strTemp.Format("%d", nNbr); does not compile
  thanks</p>
  
  <pre><code>        int nNbr = 5;
      CString strTemp;
      strTemp.Format("%d", nNbr);
  
      textBox.SetWindowTextW(strTemp);
  </code></pre>