如何检查目录存在? delphi的我知道,vc用哪个api? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 if( (_access( path, 0 )) != -1 ){ //path exist.}You also can use _chdir() function. You can get the detail of this two function in MSDN CFileFind ff;BOOL bFind =ff.FindFile("c:\\yourdirctory", 0); BOOL PathFileExists( LPCTSTR pszPath ); yesBOOL PathFileExists(LPCTSTR lpszPath);可判断文件或目录是否存在 // 判断目录是否存在; if(_access(strPathName,0)==-1) { // 如果不存在就建立一个目录 if(CreateDirectory(strPathName,NULL)==0) { AfxMessageBox("无法创建目录!",MB_OK); return ; } } 怎么识别4位数字验证码? 读《COM本质论》,前4章如饮美酒,酣畅淋漓 急,速给分!问b/s架构信息管理软件开发、网站开发、网络pc游戏开发、手机游戏开发哪个各方面收入、就业、稳定性更好? 在Activex Control中使用过静态库的兄弟来帮个忙 毕业设计,帮帮小妹我啊,老师变态!!! 关于Video方面的问题 请问我是否可以在OnInitialUpdate()函数里面添加描画语句? ATL控件中使用文本框控件 关于multicast,组播通讯。 救命 我的程序用Debug调试时,为什么无法观察变量的值 一个基础问题请教(在线等待)
{
//path exist.
}You also can use _chdir() function. You can get the detail of this two function in MSDN
BOOL bFind =ff.FindFile("c:\\yourdirctory", 0);
LPCTSTR pszPath
);
if(_access(strPathName,0)==-1)
{
// 如果不存在就建立一个目录
if(CreateDirectory(strPathName,NULL)==0)
{
AfxMessageBox("无法创建目录!",MB_OK);
return ;
}
}