title: Visual C++ 2010: argv[0] is full path in debug mode, but only .exe name in release mode
body: <p>In Visual Studio 2010 C++, I am reading argv[0] to get the working directory. </p>
  
  <p>In debug mode it is definitely showing the full path of the directory and the exe file name itself (as expected)</p>
  
  <p>In release mode it ONLY has the program .exe name, rather than the full working path. </p>
  
  <ol>
  <li>why? </li>
  <li>How to get working directory?</li>
  </ol>