How to specify the directory of a .config file in C++ code?
<p>I have a C++ program that I built using Visual Stuidos.  It has to read some variables from a .config file.  I notice that when I run the program from VS (i.e. I open the VS solution and press the "Start Without Debugging" button), it can't find the .config file unless it's in the "release" or "debug" directory.  However, I'd like to be able to run the program from the VS solution, while keeping the .config file in the same directory as the .sln file.  Is there a way I can set the path of the .config file to this directory, perhaps somewhere in the source code?</p>

<p>Thanks.</p>
