Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Listing files from a dir

Listing files from a dir

Scheduled Pinned Locked Moved C / C++ / MFC
question
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RickyC
    wrote on last edited by
    #1

    Hy everybody!:-D I'm trying to make my app list all files that have in one directory into strings... but I'm losing time... does anyone know a easy way to do that? :confused: thanks a lot! ;) cheers!

    M I 2 Replies Last reply
    0
    • R RickyC

      Hy everybody!:-D I'm trying to make my app list all files that have in one directory into strings... but I'm losing time... does anyone know a easy way to do that? :confused: thanks a lot! ;) cheers!

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      FindFirstFile, FindNextFile until it returns FALSE, FindClose. Stability. What an interesting concept. -- Chris Maunder

      R 1 Reply Last reply
      0
      • R RickyC

        Hy everybody!:-D I'm trying to make my app list all files that have in one directory into strings... but I'm losing time... does anyone know a easy way to do that? :confused: thanks a lot! ;) cheers!

        I Offline
        I Offline
        Iain Clarke Warrior Programmer
        wrote on last edited by
        #3

        Have a look at CFileFind.

        R 1 Reply Last reply
        0
        • M Mike Dimmick

          FindFirstFile, FindNextFile until it returns FALSE, FindClose. Stability. What an interesting concept. -- Chris Maunder

          R Offline
          R Offline
          RickyC
          wrote on last edited by
          #4

          YeahP! That's it! thanks Mike! :-D

          1 Reply Last reply
          0
          • I Iain Clarke Warrior Programmer

            Have a look at CFileFind.

            R Offline
            R Offline
            RickyC
            wrote on last edited by
            #5

            Ok! Thanks Iain! :) I'll look right now! Thanks guys!

            L 1 Reply Last reply
            0
            • R RickyC

              Ok! Thanks Iain! :) I'll look right now! Thanks guys!

              L Offline
              L Offline
              l a u r e n
              wrote on last edited by
              #6

              check the right section here on cp .. there are several classes that do exactly what u want ;)


              "there is no spoon"
              biz stuff   about me

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups