Visual Studio 2005, Ctrl+F5 and bad resources paths

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
eviral
Posts: 91
Joined: Mon Oct 25, 2004 10:25 am

Visual Studio 2005, Ctrl+F5 and bad resources paths

Post by eviral »

Hello,

Here how files of my VS solution are stored :

Root folder : .sln, .csproj, *.cpp, *.h
Root folder/Distrib/media : all media files (.zip, .jpg, .3ds...)
Root folder/Distrib/Bin : MyGame.exe, irrlicht.dll...

1. When i double click in Windows explorer on Root folder/Distrib/Bin/MyGame.exe all media files are loaded without any problems (relative path to rearch them is ok)


2. Into Visual Studio 2005, when i do a Ctrl+F5 (start without debugging : it compiles changes and run exe), the irrlicht console window tells me that every media can't be found (relative path to them is not good).



I DON'T KNOW WHY !
I'm trying to solve that for several hours without success...

I have looked at the irrlicht Demo solution (copying exe into ../../Bin) and this sample doesn't have the same problem has me (it works in the 2 cases).


Here is my csproj properties :

Configuration properties/General/Output directory : $(ConfigurationName)

Configuration properties/Linker/General/Output File : ./Distrib/Bin/MyGame.exe


Please help ! it makes me crazy...
Thanks


Eviral
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

Post by Sylence »

Project Properties -> Debugging -> Working Directory

You have to change this so the IDE executes the file in the right folder.
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
eviral
Posts: 91
Joined: Mon Oct 25, 2004 10:25 am

Post by eviral »

It works !!! Thanks a lot !!!
Post Reply