title: C++ default path to application change after calling GetOpenFileName
body: <p>In c++ when you do something like this:</p>
  
  <pre><code>std::ifstream file("file.dat");
  </code></pre>
  
  <p>By default, it will go to this path:</p>
  
  <pre><code>C:/bla/bla/appfolder/file.dat
  </code></pre>
  
  <p>where <code>appfolder</code> is the current's <code>.exe</code> folder. Which is normal. But, when I call <code>GetOpenFileName()</code> and choose for example this file:</p>
  
  <pre><code>C:/somefolder/somefile.txt
  </code></pre>
  
  <p>Then if I write again <code>std::ifstream file("file.dat");</code> it will go to:</p>
  
  <pre><code>C:/somefolder/file.dat
  </code></pre>
  
  <p>Any possible way to fix this, or I need to add the full path?</p>