Archive
Archive for 07.06.2011
Program Resources
07.06.2011
Leave a comment
Remember, if you want to reference resource files easily, they should go in your project directory (and ultimately the same directory as your application), or a subdirectory thereof. Then you can refer to their filenames with relative paths, such as music.ogg or media/tiles/grass01.png.
And remember that you can go up a directory with relative path names using ..\
So if you are getting errors about missing files, or files failing to open and so on, check your paths and make sure your resources are where they should be.
Categories: C++, Tips & Tricks
C++, forum, Programming, Standard library
