VC++开发常用功能一系列文章 (欢迎订阅,持续更新...)
第5章:VC++创建多级目录源代码
源代码demo已上传到百度网盘:永久生效 ,代码实现了一次创建多级目录 功能如:D:\test\abc\xyz
主要是用来两个封装函数
1. // 判断目录(不能用来查询根目录,否则总是失败.)是否存在的函数
static BOOL IsPathExist(char* lpszPath)
{
USES_CONVERSION;
//char* szTemp = W2A(lpszPath);
char szTemp[MAX_PATH]={0};