julien
12-02-2000, 07:27 AM
Hello.
I've got 2 problemes with SHFileOperation function.
So, this's my code :
/*****************/
sh.hwnd = (HWND) AfxGetMainWnd ();
sh.wFunc = FO_COPY;
sh.pFrom = pSource;
sh.pTo = pDest;
sh.fFlags = FOF_SIMPLEPROGRESS|FOF_MULTIDESTFILES;
sh.fAnyOperationsAborted= TRUE;
sh.hNameMappings = NULL;
sh.lpszProgressTitle = "Enregistrement en cours ...";
SHFileOperation (&sh);
/*****************/
The 1st probleme's if the destination file exist, it'll not be copied.
The 2nd probleme's that SHFileOperation must show a dialog progress
and it doesn't do that? Why ?
Thank.
I've got 2 problemes with SHFileOperation function.
So, this's my code :
/*****************/
sh.hwnd = (HWND) AfxGetMainWnd ();
sh.wFunc = FO_COPY;
sh.pFrom = pSource;
sh.pTo = pDest;
sh.fFlags = FOF_SIMPLEPROGRESS|FOF_MULTIDESTFILES;
sh.fAnyOperationsAborted= TRUE;
sh.hNameMappings = NULL;
sh.lpszProgressTitle = "Enregistrement en cours ...";
SHFileOperation (&sh);
/*****************/
The 1st probleme's if the destination file exist, it'll not be copied.
The 2nd probleme's that SHFileOperation must show a dialog progress
and it doesn't do that? Why ?
Thank.