Jump to content

  • Log In with Google      Sign In   
  • Create Account

GetSaveFileName & texture problem SOLVED


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Kristoffer   Crossbones+   -  Reputation: 839

Like
0Likes
Like

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 : (

Sponsor:

#2 SiCrane   Moderators   -  Reputation: 9598

Like
0Likes
Like

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.

#3 Kristoffer   Crossbones+   -  Reputation: 839

Like
0Likes
Like

Posted 06 January 2006 - 02:01 PM

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 ^^




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS