does anyone know how I could make a "save as" dialog box so they could choose the location filename and format from the list?
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
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
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