GetSaveFileName & texture problem SOLVED
2 replies to this topic
Crossbones+ - Reputation: 847
Posted 06 January 2006 - 01:54 PM
hey i have a weird problem ive never had before but this the first project ill do in open gl so dont start flame ^^ okay here is the problem. ive made so i can switch from windowed to fullscreen and reverse and took use of a function called "GetSaveFileName" to open my map files. I also made a function to reload the textures on changing from fullscreen to windowed and reverse ;) it works great textures is loaded after the change. now if i opens and file using "GetOpen/SaveFileName" and dialog popups so far so good i dont even need to load anything, aslong as the dialog shows up i cant switch to fullscreen or to windowed couse my textures wont load : / i cant load in any textures again after using the dialog "GetSaveFileName" plz reply if you need more explanation i greatly would need to fix this : (
Moderators - Reputation: 11135
Posted 06 January 2006 - 01:58 PM
When you use GetSaveFileName() or GetOpenFileName() the working directory may change. One way to address it is to save the working directory before calling the functions and restoring it afterwards. If your target platforms support the OFN_NOCHANGEDIR flag you can try using that instead.