[size=medium]
创建文件夹CreateDirectoryA(file, 0);[/size]
注:只能建一级目录
创建文件夹CreateDirectoryA(file, 0);[/size]
char file[1024];
memset(file,0,1024);
sprintf(file,"%s\\TradeData\\",g_pApplication->GetAppPath_str().c_str());//
//判断配置文件是否存在
if (GetFileAttributesA(file) == INVALID_FILE_ATTRIBUTES)
{
CreateDirectoryA(file, 0);
}
注:只能建一级目录