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 open a folder using MFC

How to open a folder using MFC

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
5 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.
  • N Offline
    N Offline
    nachilau
    wrote on last edited by
    #1

    Hello all, Currently, I need to write a program which allows the users to select a specific folder on the hard drive. However, I only know how to use MFC to allow the users to select specific file on the drive by using "GetOpenFileName()". Is there any way which allows users to select a folder rather than a file in MFC? Thanks!!!! Nachi

    R 1 Reply Last reply
    0
    • N nachilau

      Hello all, Currently, I need to write a program which allows the users to select a specific folder on the hard drive. However, I only know how to use MFC to allow the users to select specific file on the drive by using "GetOpenFileName()". Is there any way which allows users to select a folder rather than a file in MFC? Thanks!!!! Nachi

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      SHBrowseForFolder() or you could use one of the many folder selection dialogs at CP. /ravi Let's put "civil" back in "civilization" Home | Articles | Freeware | Music ravib@ravib.com

      N 1 Reply Last reply
      0
      • R Ravi Bhavnani

        SHBrowseForFolder() or you could use one of the many folder selection dialogs at CP. /ravi Let's put "civil" back in "civilization" Home | Articles | Freeware | Music ravib@ravib.com

        N Offline
        N Offline
        nachilau
        wrote on last edited by
        #3

        Sorry, I am not really know how to use this function, is there any example so that I can study on, thanks! Nachi

        R R 2 Replies Last reply
        0
        • N nachilau

          Sorry, I am not really know how to use this function, is there any example so that I can study on, thanks! Nachi

          R Offline
          R Offline
          Rickard Andersson20
          wrote on last edited by
          #4

          Yes, MSDN Library. Rickard Andersson Here is my card, contact me later! UIN: 50302279 Sonork: 37318 Interests: C++, ADO, SQL, Winsock, 0s and 1s

          1 Reply Last reply
          0
          • N nachilau

            Sorry, I am not really know how to use this function, is there any example so that I can study on, thanks! Nachi

            R Offline
            R Offline
            Ravi Bhavnani
            wrote on last edited by
            #5

            See this article[^] for an example. /ravi Let's put "civil" back in "civilization" Home | Articles | Freeware | Music ravib@ravib.com

            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