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. How to choose all the files in CFileDialog

How to choose all the files in CFileDialog

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
3 Posts 3 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.
  • S Offline
    S Offline
    santhoshv84
    wrote on last edited by
    #1

    Hi Friends. I am Santhosh, I am doing a project. I have a path like "C\\program files\...". I will give that path in CFileDialog. All the Files in the CFileDialog should be selected. Then i will Unicode it.

    Thanks and Regards. SANTHOSH V

    N CPalliniC 2 Replies Last reply
    0
    • S santhoshv84

      Hi Friends. I am Santhosh, I am doing a project. I have a path like "C\\program files\...". I will give that path in CFileDialog. All the Files in the CFileDialog should be selected. Then i will Unicode it.

      Thanks and Regards. SANTHOSH V

      N Offline
      N Offline
      Nelek
      wrote on last edited by
      #2

      Take a look to FindFirstFile and similars to list the files. BTW there is more than one message in forum with this thema. And most with very good answers, maybe you save your time and the time of people that already answered these questions cheking it

      Greetings. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson

      1 Reply Last reply
      0
      • S santhoshv84

        Hi Friends. I am Santhosh, I am doing a project. I have a path like "C\\program files\...". I will give that path in CFileDialog. All the Files in the CFileDialog should be selected. Then i will Unicode it.

        Thanks and Regards. SANTHOSH V

        CPalliniC Offline
        CPalliniC Offline
        CPallini
        wrote on last edited by
        #3

        santhoshv84 wrote:

        I will give that path in CFileDialog. All the Files in the CFileDialog should be selected.

        You can get the folder path calling CFileDialog::GetFolderPath and then use CFileFind class (see [^]) and finally

        santhoshv84 wrote:

        Then i will Unicode it.

        ??? :confused: ??? :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

        In testa che avete, signor di Ceprano?

        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