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 5942399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:14:51+00:00 2026-05-22T16:14:51+00:00

I want to develop an application that works on all three versions of Windows

  • 0

I want to develop an application that works on all three versions of Windows XP, Vista and 7. The application allows people to select files to open and allows them to save the files after some operations. Each of the three versions of Windows has a different style of File open dialog boxes. While XP uses GetOpenFileName with OPENFILENAME structure, it is suggested that we use a “Common File Dialog” with Vista and Windows 7. I can get the file dialog in the suggested style to work for each different version of the OS. However, I would like to make sure that my application opens different styles of dialog box on each version. I do not want to build separate binary for different versions of Windows.

Is it possible to have this logic built-in the application i.e. to allow it to access native open file dialog based on which OS the application is being run.

Thanks,

Abhijit

  • 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-22T16:14:52+00:00Added an answer on May 22, 2026 at 4:14 pm

    You’re going to have to do something like

    if (isVista())
    {
        //Use IFileDialog
    }
    else
    {
        //Use GetOpenFileName
    }
    

    Note:

    You can’t do this if you’ll be customizing the dialog; you’ll have to use the old version.

    Try delay-loading the DLL:

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

Sidebar

Related Questions

I want to develop a GUI application that allows me to plot candlestick bars,
I've to develop an android application that allows users to chat I want to
I want to develop a C++ application that will work on ALL operating systems.
I want to develop an application that does a bunch of cool stuff. The
i want to develop an application that take email and password of facebook as
I want to develop an application that would extract the following things from an
I want to develop an application that will use mathematical programming to solve lp
I want to develop a j2me application that will play a video file(.mp4) by
I want to develop a Facebook connect application that can operate both inside a
I want to develop a GAE application using python, but I fear that Google

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.