title: MFC: CSting IntelliSense: no instance of overloaded function
body: <p>when I convert the int to CString, the source code is showed as following</p>
  
  <pre><code>int count = 0;
  CString msg;
  msg.Format("%d", count); // error
  </code></pre>
  
  <p>error messsage is </p>
  
  <blockquote>
    <p>IntelliSense: no instance of overloaded function<br>
    "ATL::CStringT::Format [with<br>
    BaseType=wchar_t, StringTraits=StrTraitMFC_DLL
    ATL::ChTraitsCRT>]" matches the argument list<br>
    argument types are: (const char [4])                object type is:<br>
    CString</p>
  </blockquote>
  
  <p>How do I solve this problem?</p>