IEShowSaveFileDialog not returning out DestinationFilePath

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
The best thing you can do is put your XP CD into your PC, wipe your PC
clean, install XP, the put your Windows Vista upgrade DVD into the drive and
do an upgrade. This will solve all your programming issues!
 
Back
Top