title: What is the most appropriate way to concatenate with MFC's CString
body: <p>I am somewhat new to C++ and my background is in Java.  I am working on a hdc printing method.
  I would like to know the best practice for concatenating a combination of strings and ints into one CString.  I am using MFC's CString.</p>
  
  <pre><code>int i = //the current page
  int maxPage = //the calculated number of pages to print
  
  
  CString pages = ("Page ") + _T(i) + (" of ") + _T(maxPage);
  </code></pre>
  
  <p>I would like it to look like 'Page 1 of 2'.  My current code does not work. I am getting the error:</p>
  
  <blockquote>
    <p>Expression must have integral or enum type</p>
  </blockquote>
  
  <p>I have found more difficult ways to do what I need, but I want to know if there is a simple way similar to what I am trying.  Thanks!</p>