title: Unable to specify relative filepaths when program is launched with Visual C++ 2010
body: <p>So the program compiles fine, and the executable is generated in $(SolutionDir)/Debug. When I run the executable from the debug folder itself, the program successfully scans the folder placed in the dubug directory for files. However, when I execute the program from Visual Studio, the program will fail unless i input the global path of that directory to the FindFirstFile function. Why?</p>
  
  <p>For example: I have to do this in order to debug the program from Visual Studio:</p>
  
  <pre><code>#ifdef _DEBUG
  #define FILEPATH L"C:/Users/Steven/Documents/Visual Studio 2010/Projects/$(SolutionDir)/Debug/Effects/*.dll"
  #else
  #define FILEPATH L"Effects/*.dll"
  #endif
  </code></pre>