IFileSaveAsDlg::DoModal

The DoModal method invokes the FileSaveAsDlg component to display the File Save As dialog.

void spIFileSaveAsDlg->DoModal();
Parameters
None.
Results
This method returns an HRESULT value of S_OK is successful or E_ABORT if the user clicked Cancel or Close.
Sample
The following is a fragment from the complete example for the IFileSaveAsDlg interface.
   ...
   // Initialize the FileSaveAsDlg component
   std::cout << "Initializing the FileSaveAsDlg component..." << std::endl;
   spIFileSaveAsDlg->Initialize(bstrTitle, bstrFileName, bstrDirectoryName, bstrFilterList, lFilterIndex, vFlags);

   // Invoke the FileSaveAsDlg component to display the File Save As dialog
   std::cout << "Attempting to display the File Save As dialog..." << std::endl;
   spIFileSaveAsDlg->DoModal();
   ...