Thread: Command to open the 'Open Dialog Box' found in most programs.

  1. #1

    Question Command to open the 'Open Dialog Box' found in most programs.

    Can someone please post a sample C++ snippet from VC++ 6 that will make one of those dialog boxes popup so I can have the user just point to the file they want to open and hit ok to store the location and open the file?

    Thanks in advance.

  2. #2
    Registered User Vber's Avatar
    Join Date
    Nov 2002
    Well, I think this is a more specific windows programming question, so, you'll find more answers in the windows programming board.

  3. #3
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    moved ...
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  4. #4
    Join Date
    Jan 2002
    They're referred to as 'common dialog boxes'.

    Search this board for GetOpenFileName. You might also want to look at GetSaveFileName.

    Don't forget to read up on those functions on msdn (examples there too):


  5. #5
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Ontario, Canada
    Are you using MFC? If not, look here. If you are, search MSDN for CFileDialog.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  6. #6
    First of all, I am using MFC, secondly, sorry for putting this here instead of the windows board, and third, the msdn isn't helping...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Open dialog box issue
    By patrick22 in forum Windows Programming
    Replies: 6
    Last Post: 06-11-2008, 03:12 AM
  2. Dialog Box Problems
    By Morgul in forum Windows Programming
    Replies: 21
    Last Post: 05-31-2005, 05:48 PM
  3. How to program a "back" button with MFC
    By 99atlantic in forum Windows Programming
    Replies: 3
    Last Post: 04-26-2005, 08:34 PM
  4. Dialog Box Resources
    By Mecnels in forum Windows Programming
    Replies: 2
    Last Post: 04-28-2003, 05:57 AM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM