//CString strPath = _T("C:\\test"); //删除空文件夹
WCHAR strPath[] = _T("C:\\test.txt");
if (!::RemoveDirectory(strPath))
{
DWORD nErro = ::GetLastError();
//AfxMessageBox(_T("删除空文件夹失败!"));
::MessageBox(NULL,_T("警告"),_T("删除空文件夹失败"),MB_OK);
return;
}
WCHAR strPath[] = _T("C:\\test.txt");
if (!::RemoveDirectory(strPath))
{
DWORD nErro = ::GetLastError();
//AfxMessageBox(_T("删除空文件夹失败!"));
::MessageBox(NULL,_T("警告"),_T("删除空文件夹失败"),MB_OK);
return;
}