Jump to content
  • Advertisement
Sign in to follow this  
maya18222

[win32] IFileOpenDialog, IFileSaveDialog

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

How do I go about setting the directory these dialogs should initially open to? I believe I'm supposed to use the IFileDialog::SetDefaultFolder Method, but not sure how to create an IShellItem from a path, which is what IFileDialog::SetDefaultFolder requires.

And Ive also noticed that they seem to open extremly slow for me, on some computers, such as it taking around 7 seconds on my home computer and almost instantly on the UNI computers. Any ideas what this could be? I was thinking maybe it was looking for networks or something. Can you disable this?

Share this post


Link to post
Share on other sites
Advertisement
Is there any reason you're using the interfaces rather than GetOpenFileName() and GetSaveFileName()?

Share this post


Link to post
Share on other sites
Well, according to MSDN, GetOpenFileName() and GetSaveFileName() were superceded by IFileOpenDialog and IFileSaveDialog()

Share this post


Link to post
Share on other sites
That doesn't mean you have to use them though, just that MS would like you to because they provide more functionality. If you want to support XP, then you've no choice in not using them for example.

Anyway, to transform a path to a IShellItem you can use GetUIObjectOfFile(hwnd, path, IID_PPV_ARGS(&pShellItem));

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!