Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

bilsa

searching for files when running app?

This topic is 5221 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
thx BitMaster, that was exactly what I was looking for... knew that
I had used it

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!