提示:无法读取源文件或磁盘。
代码如下:
1.文件打开后都已关闭
2.在提示无法读取源文件或磁盘的同时,用另一个程序操作同一个文件可以成功
求解决方法strctOP.hwnd=NULL;
if(m_iMorC)
strctOP.wFunc=FO_COPY;
else
strctOP.wFunc=FO_MOVE;
strctOP.pFrom=pcFname;
strctOP.pTo=strDestination.GetBuffer(0);
strctOP.fFlags=FOF_ALLOWUNDO | FOF_MULTIDESTFILES;
strctOP.fAnyOperationsAborted=TRUE;
strctOP.hNameMappings=NULL;
strctOP.lpszProgressTitle="正在处理...";
SHFileOperation(&strctOP);