locked
How to list all directories in a specific path in a listbox? RRS feed

  • Question

  • Hi all,

    How can I list all directories (folders) in a specific path in a listbox in VC++ 2005? Thanks,

    Wednesday, July 14, 2010 6:57 AM

Answers

  • >How can I list all directories (folders) in a specific path in a listbox in VC++ 2005?

    Have you had a look at the LB_DIR message?

    Otherwise you can enumerate the directory using the FindFirstFile,
    FindNext, FindClose APIs.

    Dave

    • Marked as answer by Jesse Jiang Wednesday, July 21, 2010 6:00 AM
    Wednesday, July 14, 2010 7:29 AM

All replies

  • >How can I list all directories (folders) in a specific path in a listbox in VC++ 2005?

    Have you had a look at the LB_DIR message?

    Otherwise you can enumerate the directory using the FindFirstFile,
    FindNext, FindClose APIs.

    Dave

    • Marked as answer by Jesse Jiang Wednesday, July 21, 2010 6:00 AM
    Wednesday, July 14, 2010 7:29 AM
  • Thanks, but could you please show me an example?
    Wednesday, July 14, 2010 7:43 AM
  • >Thanks, but could you please show me an example?

    I don't have any specifically to do exactly what you want. Use your
    favourite web search engine.

    Dave

    Wednesday, July 14, 2010 8:24 AM