title: Is there a simple Program Files/Program Files (x86) directive for C++ in windows?
body: <p>I am currently hard-coding the path to my application as follows:</p>
  
  <pre><code>const char* OriginCopyFile = "C:\\Program Files (x86)\\i-cut\\i-cut\\Origin_copy.txt";
  </code></pre>
  
  <p>This application is going to be running in both 32 and 64 systems. How can I detect the path without the file name in order to reuse it with several files and make it portable between architecture.</p>