folder copy/
SHFILEOPSTRUCT so;//for direct copy
//global varient
so.hwnd=hWnd;
so.wFunc=FO_COPY;
so.pFrom="C://test//mfcdll";
so.pTo="C://mfcdll";
so.fFlags=FOF_ALLOWUNDO|FOF_SIMPLEPROGRESS;
so.lpszProgressTitle="Zyy copy testing!";
if(SHFileOperation(&so))
{
MessageBox(hWnd,"File Copy failed!","Error",MB_OK);
}
SHFILEOPSTRUCT so;//for direct copy
//global varient
so.hwnd=hWnd;
so.wFunc=FO_COPY;
so.pFrom="C://test//mfcdll";
so.pTo="C://mfcdll";
so.fFlags=FOF_ALLOWUNDO|FOF_SIMPLEPROGRESS;
so.lpszProgressTitle="Zyy copy testing!";
if(SHFileOperation(&so))
{
MessageBox(hWnd,"File Copy failed!","Error",MB_OK);
}