BOOL IsFolderEmpty(string path)
{
string str = path + "\*.*";
CFileFind ff;
BOOL bFound;
bFound = ff.FindFile(str.c_str());
while (bFound)
{
bFound = ff.FindNextFile();
if (!ff.IsDots())
{
return FALSE;
}
}
ff.Close();
return TRUE;
}