• Advertisement
Sign in to follow this  

Can't open files when running from VC++

This topic is 4201 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

I'm trying to debug my program in Visual Studios C++ 2005 EE. However, it fails to load the levelfile, shaders, or any other file. The same thing happens when I run it from VC++, but without debugging (ctrl-f5). All these files load fine for me when I just run the .exe in the folder. Any suggestions as to how to fix this?

Share this post


Link to post
Share on other sites
Advertisement
This is because of the relative paths used. When you run the program standalone, the relative paths are correct, but when you run it for VS they're not. Have a look in the project settings for the projects working directory.

Hope that helps,#

Dave

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement