使用前需要添加:
#include "shlwapi.h"
#pragma comment(lib, "shlwapi.lib")
函数:
PathIsDirectory() 检查文件夹是否存在
CreatDirectioy() 创建文件夹
例:
if(!PathIsDirectory("temp"))
{
CreateDirectory("temp",0);
}
使用前需要添加:
#include "shlwapi.h"
#pragma comment(lib, "shlwapi.lib")
函数:
PathIsDirectory() 检查文件夹是否存在
CreatDirectioy() 创建文件夹
例:
if(!PathIsDirectory("temp"))
{
CreateDirectory("temp",0);
}