G
Guest
Hi,
I am trying to use IEShowSaveFileDialog Vista API .
But the DestinationFilePath out is comming NULL .
I have used
TCHAR pszDest[MAX_PATH] = {_T("\0")} ; // OUT: path to saved file
....
HRESULT hr = pIEShowSaveFileDialog(
hwnd, // Application window
pszName, // Initial filename and path
NULL, // Use path from filename
pszExt, // Extension filter list
pszDefExt, // Default extension
1,
OFN_ENABLESIZING |
OFN_NOREADONLYRETURN | OFN_OVERWRITEPROMPT,
(LPWSTR*)&pszDest, // Selected destination
&hState); // Used to complete the operation
now pszDest is NULL although the hState is good and file is getting copied
to selected folder .
Please help
I am trying to use IEShowSaveFileDialog Vista API .
But the DestinationFilePath out is comming NULL .
I have used
TCHAR pszDest[MAX_PATH] = {_T("\0")} ; // OUT: path to saved file
....
HRESULT hr = pIEShowSaveFileDialog(
hwnd, // Application window
pszName, // Initial filename and path
NULL, // Use path from filename
pszExt, // Extension filter list
pszDefExt, // Default extension
1,
OFN_ENABLESIZING |
OFN_NOREADONLYRETURN | OFN_OVERWRITEPROMPT,
(LPWSTR*)&pszDest, // Selected destination
&hState); // Used to complete the operation
now pszDest is NULL although the hState is good and file is getting copied
to selected folder .
Please help