searching for files when running app?
Hello
When I run my .exe application the "../Resources/somefile.bmp" paths work just fine, since the file is situated relative to the .exe :
GameDir/System/myexe.exe
GameDir/Resources/somefile.bmp
But then when I compile the project and run it from within the
compiler, the files can''t be found since the project is situated
not in the same dir as myexe.exe.
There has to be some option for fixing this in VC++ .NET, but I
just can''t find it.
Woult appreciate if someone could point it out for me
thx!
You could either change the output directory to a directory where the .exe file would work, or store the absolute path to the resource in the registry.
Change the working directory. It can be found in the property page of your project under "Debugging".
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement