title: C++ [Windows] Path to the folder where the executable is located
body: <p>I need to access some files with <code>fstream</code> in my C++ app on Windows. Those files are all located in subfolders of the folder where my exe file is located.</p>
  
  <ul>
  <li>What is the easiest and more important: safest way to get the path to the folder of the current executable?</li>
  </ul>