Visual Studio 2012 C++ Compiled Program isn't loading files
I've got a C++ program that is exhibiting some weird behaviour when I try
to run it from the IDE. One of the things this program needs to do is load
some files that are in the same directory it is. I've placed these files
in Visual Studio's output directory so that it can find them.
However, when I run the program from the IDE using Ctrl+F5 ( Start without
debugging ), the program can't find the files it needs.
Oddly enough if I go to the Windows Explorer and manually find the
generated .exe and run it, the program finds the files and runs normally.
How do I fix it so that I can run the program from the IDE and have it
still find its files?
No comments:
Post a Comment