save as dialog

This is a discussion on save as dialog within the Windows Programming forums, part of the Platform Specific Boards category; does anyone know how I could make a "save as" dialog box so they could choose the location filename and ...

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

    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
    Location
    near a computer
    Posts
    3,859
    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
    Posts
    223
    you can also use the CFileDialog and call it's do modal function...




    Code:
    	char szFilter[] = "Text (*.txt)|*.txt||"; 
    
    	CFileDialog dlgFile( FALSE,  // 
    		         "*.mdb", 
    				 strSource,  //DEFAULT SOURCE
    				 OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
    				 szFilter);
    
    
    
    
    
    if( dlg.DoModal( ) == IDOK )
    {
        MySaveFileFunction( dlg.GetPathName() );
    }
    zMan

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, 07:07 PM
  2. MFC Save As dialog
    By Micko in forum Windows Programming
    Replies: 0
    Last Post: 08-23-2004, 03: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, 04:31 PM
  4. Save As Dialog not saving correctly
    By jkw2068 in forum Windows Programming
    Replies: 10
    Last Post: 08-12-2003, 02:39 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 10:44 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21