Remarks
Obtains further information about the file chosen through a previous call to the CommonDialogShowSave method.
For further information about dealing with Unicode characters, check the How to manage Unicode characters in filenames and tags tutorial.
Syntax
[C++]
LPCTSTR control.CommonDialogGetInfoFromLastSave (
short nInfo
);
|
|
Parameter
|
Description
|
|
|
nInfo
|
Number representing the information to obtain.
Supported values are the following:
Mnemonic constant
|
Value
|
Meaning
|
COMMON_DLG_FULLPATHNAME
|
0
|
String representing the absolute pathname (path + filename) of the chosen file; this value is identical to the one returned by the CommonDialogShowOpen method
Example "C:\myfolder\myfile.mp3".
|
COMMON_DLG_PATH
|
1
|
String representing the absolute path where the file is located (without the filename).
Example "C:\myfolder\".
|
COMMON_DLG_FILENAME
|
2
|
String representing the filename of the chosen file.
Example "myfile.mp3".
|
COMMON_DLG_FILENAME_NOEXT
|
3
|
String representing the filename of the chosen file without the extension.
Example "myfile".
|
COMMON_DLG_EXT
|
4
|
String representing the extension of the chosen file.
Example "mp3".
|
|
Return value
Value
|
Meaning
|
|
|
Empty string
|
Information not available or an error occurred.
|
Valid string
|
The requested information.
|
|