Can't copy all files (or by wildcard) from one dir into another with the
native C++ code:
-------
SHFILEOPSTRUCT shf = {0};
shf.hwnd = NULL;
shf.wFunc = FO_COPY;
shf.pFrom = _T("\\SourceDir\\*\0");
shf.pTo = _T("\\DestDir\0");
shf.fFlags = FOF_NOCONFIRMMKDIR|FOF_NOCONFIRMATION|FOF_SILENT;
res = ::SHFileOperation(&shf); // !!! res = 1
-------
All dirs exist and SourceDir is not empty.
What is wrong with the code?
PS
The same code works fine on win32 desktop:
--------
shf.pFrom = _T("C:\\SourceDir\\*\0");
shf.pTo = _T("C:\\DestDir\0");
-------