MFC程序中如何创建多级目录 创建多级目录函数 BOOL mkdirEx(const char* lpPath) { CString pathname = lpPath; if(pathname.Right(1) != "\\") pathname += "\\" ; int end = pathname.ReverseFind('\\'
VC中判断目录,文件是否存在,创建目录的方法 目录是否存在的检查: BOOL FolderExist(CString strPath) { WIN32_FIND_DATA wfd; BOOL rValue = FALSE; HANDLE hFind = FindFirstFile(strPath, &wfd); if ((hFind != INVAL