Directory browsing

This is a discussion on Directory browsing within the C++ Programming forums, part of the General Programming Boards category; i was wandering if there any good tutorials or books on setting up code to allow he user to browse ...

  1. #1
    Registered User
    Join Date
    May 2005
    Location
    Toronto, Canada
    Posts
    257

    Directory browsing

    i was wandering if there any good tutorials or books on setting up code to allow he user to browse through folders to select the file she wants to work with.

    I'm just starting on it and have no idea where even to start.

    Any input is welcome,

    Thanks.
    Everything is relative...

  2. #2
    Registered User
    Join Date
    May 2005
    Location
    Toronto, Canada
    Posts
    257
    I've looked through this FAQ > How do I... (Level 3) > Accessing a directory and all the files within it, but I don't really undrstand what it is talking about.
    Everything is relative...

  3. #3
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    If you want the common file browser dialog look up the OPENFILENAME structure and GetOpenFileName().
    If you want to manually check look up FindFirstFile() and FindNextFile().
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,660
    Assuming Windows....
    GetOpenFileName()
    Using Common Dialog Boxes
    You can also search these boards with "OPENFILENAME" for more code examples.

    gg

  5. #5
    Registered User
    Join Date
    May 2005
    Location
    Toronto, Canada
    Posts
    257
    I've taken a look at the forums, and there are a lot of people with the same problem it seems. I'll keep researching.
    But just so I understand correctly. If I want to have the user say click a button and open up a dialog box with say "My Computer" directory or my Documents, would I have to call GetOpenFileName() and the rest of the stuff under the executable events for that button?

    I guess this has turned into a Windows thread, move it if you see fit, pls.
    Everything is relative...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  2. Couple errors please help :-D
    By JJJIrish05 in forum C Programming
    Replies: 9
    Last Post: 03-06-2008, 01:54 AM
  3. Browsing directory in unix
    By Jaykar in forum Linux Programming
    Replies: 2
    Last Post: 10-19-2007, 03:34 AM
  4. Replies: 6
    Last Post: 07-30-2003, 03:08 AM
  5. Directory reading trouble
    By samGwilliam in forum Linux Programming
    Replies: 0
    Last Post: 03-10-2002, 08:43 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21