Jump to content
  • Advertisement
Sign in to follow this  
PunaProgrammer chris

win32 file opener

This topic is 4875 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Can someone show me how to open a file with the win32 GUI? I am using c++, and I already have a function to actually open the file, read it's contents, etc and it takes a string (the filename for the file being opened) as a parameter. The funtion looks like this: mappy.Load("insertfilenamehere.wak"); I would prefer if it only opened .wak files, but if it opens any kind of file, that works too. My freind tried doing this, however it wouldn't work on any computers running winXP without SP2, so I hope he was just doing something wrong. Any help would be greatly appreciated.

Share this post


Link to post
Share on other sites
Advertisement
Yeah, I am asking for a file open dialog box, and the GetOPpenFileName looks like what I want, but how exactly would I use it? Just copy the example? If so, where would I put the mappy.Load function? Some clarification would really help.

Share this post


Link to post
Share on other sites
Alright, I've decided to give up on using win32, it doesn't seem to fully work on my computer (or one of my freinds computer) but it seems to work on other computers so... I don't know what to do.

Does anyone know of a way to have a open file dialog box not using win32? I think this might solve my problems (plus it would make it cross platform). I am on the brink of going insane over this open file thing, so any help would really, really be appreciated.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!