Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Boltimus

Filters for opening files...

This topic is 5767 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

Okay I got the common dialog box working to open files with GetOpenFileName but I''m getting garbage letters in the file type text area. I used the following format for the filter (which is entered for the LPCTSTR lpstrFilter member) Anyhow here''s how I did it, does this look right? char filter[] = TEXT("Text Files (*.txt)\0*.txt\0"); file_data.lpstrFilter = filter; thx! ~Bolt "All men dream: but not equally. Those who dream by night in the dusty recesses of their minds wake in the day to find that it was vanity: but the dreamers of the day are dangerous men, for they may act their dreams with open eyes, to make it possible." This I did...

Share this post


Link to post
Share on other sites
Advertisement
the type area isn''t affected by the filter, only file type drop-down listbox is. the initial text for the filename is whatever lpstrFile points to.

Share this post


Link to post
Share on other sites
ok, then I guess my next two questions are: 1.) is what I put up ok for the drop down box? cause I still am getting garbage letters. and 2.) how do I get to the file type extensions?

thx!

Share this post


Link to post
Share on other sites
the files of type drop down box has the garbage characters...I have nothing in the file name (which is fine with me) it''s the files of type that I want to get right...

thx!!

~Bolt

"All men dream: but not equally. Those who dream by night in the dusty recesses of their minds wake in the day to find that it was vanity: but the dreamers of the day are dangerous men, for they may act their dreams with open eyes, to make it possible." This I did...

Share this post


Link to post
Share on other sites

  • 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!