title: How to Concatenate Two LPCSTRs
body: <p>I have two LPCSTRs I need to concatenate like so:</p>
  
  <pre><code>if (!rename(directory + originalFileName, directory + fileName)){
      std::cout&lt;&lt;originalFileName&lt;&lt;std::endl&lt;&lt;fileName&lt;&lt;std::endl&lt;&lt;std::endl;
  }
  </code></pre>
  
  <p>The only problem however is that I can't use the <code>+</code> operator here. How can I safely concatenate two LPCSTRs like this?</p>
  
  <p>EDIT: Note that an LPCSTR is defined as a <code>const * char</code> while an LPCTSTR is defined as <code>const TCHAR*</code>. The two are different when UNICODE and/or _UNICODE are defined. In this case, they are. </p>