chenenzhi2013-03-04 09:55:36
此代码有BUG:修改如下:
void DeleteDir(LPCTSTR lpszDir)
{
WIN32_FIND_DATA wfd;
TCHAR szFile[MAX_PATH];
TCHAR szDelDir[MAX_PATH];
lstrcpy(szDelDir, lpszDir);
wsprintf(szFile, TEXT("%s\\*.*"), lpszDir);
HANDLE hFindFile = FindFirstFile(szFile,&n