void CFileTestDlg::OnBnClickedButton4() { // TODO: Add your control notification handler code here CString strFolderPath("D:\test"); if (PathIsDirectory(strFolderPath)) { MessageBox(_T("文件夹已经存在!")); } else CreateDirectory(strFolderPath, NULL) ; }
void CFileTestDlg::OnBnClickedButton4() { // TODO: Add your control notification handler code here CString strFolderPath("D:\test"); if (PathIsDirectory(strFolderPath)) { MessageBox(_T("文件夹已经存在!")); } else CreateDirectory(strFolderPath, NULL) ; }