Thread: dialog box

  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    99

    dialog box

    hi, im having problems browsing for folders in my application. Firstly using visual studio i could do this no probs, but its not the compiler im using , im using borland c++ builder 6. Using the standard dialog boxes it provided i can do everything wen i comes to files but i cant select folders! Ive been trying for ages now and am no nearer to solving this. ive seen SHBrowseForFolder but i cnt get this to work and im wondering if it would inside of borland. Could anyone pass on maybe some advice?

    thanks

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Some advice: use a portable library like wxWidgets, so that it works under Borland and MS compilers, and under Linux and Mac, too.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    99
    i would just like to start off small first and make a basic one. Im not that good so i dont wanna get too fancy

  4. #4
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    GetOpenFileName()?

  5. #5
    Registered User
    Join Date
    Apr 2008
    Posts
    99
    ive never used GetOpenFileName() before so i resorted to a bit of googling. does this only work for files and not for opening folders tho?

  6. #6
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675

  7. #7
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Quote Originally Posted by pastitprogram View Post
    ive never used GetOpenFileName() before so i resorted to a bit of googling. does this only work for files and not for opening folders tho?
    You betcha. You can specify what sort of file you are seeking as one of its parameters. I like it better than screwing with the shell functions. But whatever floats your boat. They both get the job done.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 02-13-2008, 02:59 PM
  2. Parent of a BrowseForFolder dialog box
    By @nthony in forum Windows Programming
    Replies: 4
    Last Post: 01-08-2007, 02:54 PM
  3. Display Dialog Box Then Execute
    By stickman in forum C++ Programming
    Replies: 17
    Last Post: 05-10-2006, 11:02 AM
  4. New Theme
    By XSquared in forum A Brief History of Cprogramming.com
    Replies: 160
    Last Post: 04-01-2004, 08:00 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM