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. create save dialog box.

create save dialog box.

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.
  • K Offline
    K Offline
    keyto
    wrote on last edited by
    #1

    In my project I need to write text to file. For that I need to display the Save dialog and there user should be able to create folder and enter file name to save the file in that location. How can I do? Actually I need to display the Save dialog on click to One command button.

    H J 2 Replies Last reply
    0
    • K keyto

      In my project I need to write text to file. For that I need to display the Save dialog and there user should be able to create folder and enter file name to save the file in that location. How can I do? Actually I need to display the Save dialog on click to One command button.

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      When you show save dialog CFileDialog m(0); m.DoModal(); you can check return value of Domodal and then use of GetFileName();,user can make folder in this dialog.

      1 Reply Last reply
      0
      • K keyto

        In my project I need to write text to file. For that I need to display the Save dialog and there user should be able to create folder and enter file name to save the file in that location. How can I do? Actually I need to display the Save dialog on click to One command button.

        J Offline
        J Offline
        JudyL_MD
        wrote on last edited by
        #3

        In addition to Hamid's answer, the Win32 API way is to use GetSaveFileName Judy

        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