MFC를 사용하다면 다음함수를 사용하고, API를 사용하면 FindFirstFile를 사용하자
void CDlg::Dir_Check(CString strDir)
CFileFind file;
CString strFile = "*.*";
BOOL bResult = file.FindFile(strDir + strFile);
if(!bResult)
{
bResult = CreateDirectory(strDir+"\",NULL);
if(!bResult)
{
//Error;
}
}
}
댓글 없음:
댓글 쓰기