Thread: save as dialog

  1. #1
    Registered User canine's Avatar
    Join Date
    Sep 2001

    save as dialog

    does anyone know how I could make a "save as" dialog box so they could choose the location filename and format from the list?
    In a perfect world every dog would have a home and every home would have a dog.
    Visit My Web Site, Canine Programming
    I use Win32 API

  2. #2
    train spotter
    Join Date
    Aug 2001
    near a computer
    There is the common dialog 'Save As' (you must have seen it). You can call it in the program and it will handle most of the save file functions.

    Look for 'GetSaveFileName' in the help.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  3. #3
    Registered User
    Join Date
    Aug 2001
    you can also use the CFileDialog and call it's do modal function...

    	char szFilter[] = "Text (*.txt)|*.txt||"; 
    	CFileDialog dlgFile( FALSE,  // 
    				 strSource,  //DEFAULT SOURCE
    if( dlg.DoModal( ) == IDOK )
        MySaveFileFunction( dlg.GetPathName() );

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Save Dialog
    By Tropicalia in forum Windows Programming
    Replies: 6
    Last Post: 10-05-2006, 06:07 PM
  2. MFC Save As dialog
    By Micko in forum Windows Programming
    Replies: 0
    Last Post: 08-23-2004, 02:02 PM
  3. Using standard C fscanf function with win32 save dialog
    By korbitz in forum Windows Programming
    Replies: 1
    Last Post: 04-08-2004, 03:31 PM
  4. Save As Dialog not saving correctly
    By jkw2068 in forum Windows Programming
    Replies: 10
    Last Post: 08-12-2003, 01:39 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM