searching for files when running app?

Started by
2 comments, last by bilsa 19 years, 10 months ago
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!
Advertisement
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".
thx BitMaster, that was exactly what I was looking for... knew that
I had used it

This topic is closed to new replies.

Advertisement