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. findfirst file

findfirst file

Scheduled Pinned Locked Moved C / C++ / MFC
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.
  • 9 Offline
    9 Offline
    9ine
    wrote on last edited by
    #1

    Give me a snippet of code for a findfirstfile to browse thru all files by a mask in a certain directory

    9ine

    X M T 3 Replies Last reply
    0
    • 9 9ine

      Give me a snippet of code for a findfirstfile to browse thru all files by a mask in a certain directory

      9ine

      X Offline
      X Offline
      XtremDev
      wrote on last edited by
      #2

      google is your friend !

      9 1 Reply Last reply
      0
      • 9 9ine

        Give me a snippet of code for a findfirstfile to browse thru all files by a mask in a certain directory

        9ine

        M Offline
        M Offline
        Mila025
        wrote on last edited by
        #3

        Hi, http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/listing_the_files_in_a_directory.asp[^] only change StringCbCatN (DirSpec, BUFSIZE, "\\*", 3); to e.g. StringCbCatN (DirSpec, BUFSIZE, "\\*.txt", 7);

        ----------- Mila

        1 Reply Last reply
        0
        • 9 9ine

          Give me a snippet of code for a findfirstfile to browse thru all files by a mask in a certain directory

          9ine

          T Offline
          T Offline
          ThatsAlok
          wrote on last edited by
          #4

          9ine wrote:

          e me a snippet of code for a findfirstfile to browse thru all files by a mask in a certain directory

          you are lucky.. MSDN provided you example in CFileFind::FindNextFile()

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and you

          9 1 Reply Last reply
          0
          • T ThatsAlok

            9ine wrote:

            e me a snippet of code for a findfirstfile to browse thru all files by a mask in a certain directory

            you are lucky.. MSDN provided you example in CFileFind::FindNextFile()

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and you

            9 Offline
            9 Offline
            9ine
            wrote on last edited by
            #5

            no MFC only native windows API please

            9ine

            1 Reply Last reply
            0
            • X XtremDev

              google is your friend !

              9 Offline
              9 Offline
              9ine
              wrote on last edited by
              #6

              I thought codeproject was my friend :(

              9ine

              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