Using non-resource bitmaps,
Members - Reputation: 133
Posted 12 August 2001 - 06:02 AM
Members - Reputation: 122
Posted 12 August 2001 - 05:00 PM
To fix this in Visual C++, open the Project menu and click Settings. Select the configuration you want to modify, and then click the Debug tab. Then type out the directory of your executable in the edit box under ''Working Directory''. Doing this will not modify your program or anything like that, it will just change the working directory that VC++ sets when the program is run from within the compiler. If you do not use Visual C++, try looking through your compiler''s options or something until you can find something similar.
Also, the working directory can change while your program is running (some file-related functions will change it). So, it may be better to get the working directory (the getcwd() or GetCurrentDirectory() functions will do) at the start of the program and store and somewhere, and then use that for opening files.
If any of this is unclear to you, tell me and I will try to explain it better.