BOOL CMyFile::CreateFolder(CString strFolderName)
{
DWORD dwAttr;
dwAttr = GetFileAttributes(strFolderName);
if(0xFFFFFFFF == dwAttr) //暥審?晄懚嵼
{
if(!CreateDirectory(strFolderName, NULL))
{
return FALSE;
}
else
{
return TRUE;
}
}
return TRUE;
}
{
DWORD dwAttr;
dwAttr = GetFileAttributes(strFolderName);
if(0xFFFFFFFF == dwAttr) //暥審?晄懚嵼
{
if(!CreateDirectory(strFolderName, NULL))
{
return FALSE;
}
else
{
return TRUE;
}
}
return TRUE;
}