title: How to convert a double value to a string in order to output it to a window title bar under Win32
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/332111/how-do-i-convert-a-double-into-a-string-in-c">How do I convert a double into a string in C++?</a><br>
    <a href="https://stackoverflow.com/questions/1123201/convert-double-to-string-c">Convert double to string C++?</a>  </p>
  </blockquote>
  
  
  
  <p>Total C++ and Win32 noob here playing around in Visual Studio 2012 land, so bear with me as I sometimes bite off more than I can chew  :)</p>
  
  <p>I have a Win32 app that's simply set up a window using a peekmessage loop for real-time updating. The app runs okay and the Window shows fine. I'd like to print text to the Window title bar displaying the frames per second from a clock / timer class I was provided with.</p>
  
  <p>I've yet to learn GDI / GDI+ or Direct2D &amp; DirectWrite for outputting text and variable values to the client area, so for now I need a simple method of outputting some basic statistics to the Window and I figured the easiest way is to update the window title at this stage. My window class has a SetTitle method that takes a std::wstring so I was wondering how best to build a string from literal text and variable values such as double? As you can likely surmise I'm also unfamiliar with strings beyond the basic std:cout for Console-based apps.</p>
  
  <p>Amazon tells me my Holy <strong><em>'Book of Petzold, 5th Edition'</em></strong> is 3 days away so any tips will be greatly appreciated and you'll make it onto my Christmas card list this year.</p>
  
  <p>Thanks.</p>