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. Specified the path with Cfiledialog

Specified the path with Cfiledialog

Scheduled Pinned Locked Moved C / C++ / MFC
question
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
    sdfdsfa
    wrote on last edited by
    #1

    How do i get folder path with CFiledialog? I know if I call the GetPathName() It will return the Full path to specific folder. but in order to close the CFileDialog i have to click on either Save or Open. Thanks Shin

    D 1 Reply Last reply
    0
    • S sdfdsfa

      How do i get folder path with CFiledialog? I know if I call the GetPathName() It will return the Full path to specific folder. but in order to close the CFileDialog i have to click on either Save or Open. Thanks Shin

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      sdfdsfa wrote: but in order to close the CFileDialog i have to click on either Save or Open. Which is the whole reason for using CFileDialog in the first place. It sounds like you want to use SHBrowseForFolder() instead.


      Five birds are sitting on a fence. Three of them decide to fly off. How many are left?

      A 1 Reply Last reply
      0
      • D David Crow

        sdfdsfa wrote: but in order to close the CFileDialog i have to click on either Save or Open. Which is the whole reason for using CFileDialog in the first place. It sounds like you want to use SHBrowseForFolder() instead.


        Five birds are sitting on a fence. Three of them decide to fly off. How many are left?

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        Thanks David, I downloaded the sample program for SHBrowserForFolder() from codeproject. That was it. Thank you very much. Shin

        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