Thread: GetOpenFileName function for dir's?

  1. #1
    Shibby willc0de4food's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    378

    GetOpenFileName function for dir's?

    Hey, i need a function similar to GetOpenFileName except for dir's. An example would be like in Winamp, you can choose to add a file / dir / url. when you go to file i believe it uses the GetOpenFileName function, but i'm not sure what it uses for when you want to add an entire dir. thanks
    Registered Linux User #380033. Be counted: http://counter.li.org

  2. #2
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    http://msdn.microsoft.com/library/de...enfilename.asp

    "To display a dialog box that allows the user to select a directory instead of a file, call the SHBrowseForFolder function."

  3. #3
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544

  4. #4
    Shibby willc0de4food's Avatar
    Join Date
    Mar 2005
    Location
    MI
    Posts
    378
    awesome works like a charm.

    now what i want to do is basically get a list similar to what i'd get from: dir /s /b AND dir /s /b *.ext
    anyone know how to do this without using the console commands?
    Registered Linux User #380033. Be counted: http://counter.li.org

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Seg Fault in Compare Function
    By tytelizgal in forum C Programming
    Replies: 1
    Last Post: 10-25-2008, 03:06 PM
  2. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  3. In over my head
    By Shelnutt2 in forum C Programming
    Replies: 1
    Last Post: 07-08-2008, 06:54 PM
  4. Change this program so it uses function??
    By stormfront in forum C Programming
    Replies: 8
    Last Post: 11-01-2005, 08:55 AM
  5. const at the end of a sub routine?
    By Kleid-0 in forum C++ Programming
    Replies: 14
    Last Post: 10-23-2005, 06:44 PM