The DoModal method invokes the FileSaveAsDlg component to display the File Save As dialog.
void spIFileSaveAsDlg->DoModal();
...
// 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();
...