Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 475585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T00:24:12+00:00 2026-05-13T00:24:12+00:00

In Vista, I have been using an IFileSaveDialog to let users pick a save-as

  • 0

In Vista, I have been using an IFileSaveDialog to let users pick a “save-as” folder. Users export a folder of images, say, and need to choose a new or existing target folder.

Briefly, the code goes like this:

IFileSaveDialog* dialog; // created
dialog->SetOptions(FOS_PICKFOLDERS);
dialog->Show(NULL);
dialog->GetResult(&shellItem)

In Windows 7, the FOS_PICKFOLDERS option appears to have been disallowed (and is marked as such in the API). The return value on the SetOptions call is E_INVALIDARG. If I use a IFileOpenDialog, I’m allowed to set the folders option, but the user is prompted with an error when choosing a nonexistent folder (despite my setting flags suggesting not to do this).

Is there an alternate way to get the new IFileDialog to act as a “save folder” dialog?

[To head off some comments, the SHBrowseForFolder API still exists, but is still not an acceptable solution for our UI deciders.]

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T00:24:12+00:00Added an answer on May 13, 2026 at 12:24 am

    The reason for this can be found in the documentation:

    FOS_PICKFOLDERS: Present the Open dialog offering a choice of folders rather than files.

    Using FOS_PICKFOLDERS for "save" was never supposed to be supported – but Vista didn’t enforce it. Use IFileOpenDialog instead and you’re good to go.
    You are picking an existing folder (not specifying a folder to create), so open was always the correct choice.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What OS would you choose for Visual Studio 2010? I have been running Vista
I have not used Windows Vista. I knew that many APIs have been changed/deprecated
I'm trying to install bcrypt-ruby on Windows Vista. So far, I have been able
I have Windows Vista MCML app, and I need to figure out the current
I have been using Windows 7 for a while but have not had to
I have been using Visual Studio 2005 under Windows XP Pro 64-bit for C
I have a reoccurring DNS problem that has been plaguing our users, occasionally causing
I'm a fan of Mercurial and have been using it on Linux for a
I have been using ubuntu 10.04 and recently 11.10. I have mono develop installed
I have Vista x64 IIS7 running on my dev. machine. I used to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.