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. Sort the list of files available in a folder.

Sort the list of files available in a folder.

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorial
6 Posts 4 Posters 1 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.
  • L Offline
    L Offline
    lucky_1221
    wrote on last edited by
    #1

    I am Using the VC++ coding,I don't know how to sort the list of files in a folder.Can anybody know please give me the solution with syntax also.... Thanks, manojkumar.U

    C L 2 Replies Last reply
    0
    • L lucky_1221

      I am Using the VC++ coding,I don't know how to sort the list of files in a folder.Can anybody know please give me the solution with syntax also.... Thanks, manojkumar.U

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      What do you mean exactly by "sort the list of files in a folder" ? There is no such thing as that. You can view them sorted in the explorer but they still are not "sorted" on your hard disk. What are you trying to achieve ? Do you want to modify the sort order for a specific folder within the explorer ? Do you want to retrieve a sorted list of files to use within your application ? Which kind of sorting do you need ? Well, you really need to describe your problem in more details...

      Cédric Moonen Software developer
      Charting control [v3.0] OpenGL game tutorial in C++

      1 Reply Last reply
      0
      • L lucky_1221

        I am Using the VC++ coding,I don't know how to sort the list of files in a folder.Can anybody know please give me the solution with syntax also.... Thanks, manojkumar.U

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        This control[^] should help you get what you want.

        The best things in life are not things.

        L 1 Reply Last reply
        0
        • L Lost User

          This control[^] should help you get what you want.

          The best things in life are not things.

          L Offline
          L Offline
          lucky_1221
          wrote on last edited by
          #4

          i want code for ,two string arrays,if one element in the string array is compared to the another all elements in th enext array,if it is findout discard the element go to the next element.

          L V 2 Replies Last reply
          0
          • L lucky_1221

            i want code for ,two string arrays,if one element in the string array is compared to the another all elements in th enext array,if it is findout discard the element go to the next element.

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Sorry, but I don't understand what you are asking for here. If you need to sort a list of strings then either use one of the STL[^] types that provides for sorting, or use the CRT quick sort[^] function. If you are trying to reduce an array to unique entries, then once again one of the STL templates should work for you.

            The best things in life are not things.

            1 Reply Last reply
            0
            • L lucky_1221

              i want code for ,two string arrays,if one element in the string array is compared to the another all elements in th enext array,if it is findout discard the element go to the next element.

              V Offline
              V Offline
              venkatmakam
              wrote on last edited by
              #6

              Check this example implementation which sorts CStringArray. http://support.microsoft.com/kb/120961

              http://www.mono-project.com/Main\_Page

              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