GetSaveFileName & texture problem SOLVED

Started by
1 comment, last by Hunter_Ex 18 years, 3 months ago
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 : (
Blekinge Institute of Technology
Twitter [twitter]devmoon[/twitter]
Homepage http://devmoon.se
Stream http://twitch.tv/devmoon
Advertisement
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.
xD dOH

thanx ALOT for the FAST and CORRECT answer : D

i did thw job. i would have no clue that GetSaveFileName chanegd thw work dir : /
cant find any much fact on the function

but now its works thx for my stupidity ^^
Blekinge Institute of Technology
Twitter [twitter]devmoon[/twitter]
Homepage http://devmoon.se
Stream http://twitch.tv/devmoon

This topic is closed to new replies.

Advertisement