title: Setting the current directory of a running app in C++
body: <p>The following <a href="https://stackoverflow.com/a/885081/655794">answer</a> gives a solution using C#, I was wondering what the equivalent would be if one were using only c++ (not c++\cli)</p>
  
  <pre><code>System.IO.Directory.SetCurrentDirectory(System.AppDomain.CurrentDomain.BaseDirectory);
  </code></pre>
  
  <p>Is there anything in boost that might do the trick?</p>
  
  <p>Based on this problem I've been having: <a href="https://stackoverflow.com/questions/12253921/correctly-creating-and-running-a-win32-service-with-file-i-o">Correctly creating and running a win32 service with file I/O</a></p>