IDlgResults::GetFullPathName

The GetFullPathName method returns the combined filename and destination directory entered by the user in the File Save As dialog and contained in the DlgResults component.

_bstr_t bstrFullPathName = spIDlgResults->GetFullPathName();
Parameters
None.
Results
This method returns a _bstr_t containing the combined filename and destination directory entered by the user.
Sample
The following is a fragment from the complete example for the IDialogResults interface.
   ...
   // Retrieve the filename and destination directory entered by the user
   IDlgResultsPtr spIDlgResults(spIFileSaveAsDlg);
   std::cout << "FileName=" << (LPCSTR) spIDlgResults->GetFileName() << std::endl;
   std::cout << "DirectoryName=" << (LPCSTR) spIDlgResults->GetDirectoryName() << std::endl;
   std::cout << "FullPathName=" << (LPCSTR) spIDlgResults->GetFullPathName() << std::endl;
   ...