vc判断文件夹是否存在
生活随笔
收集整理的這篇文章主要介紹了
vc判断文件夹是否存在
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
?#include "Shlwapi.h"
?#pragma comment(lib,"shlwapi.lib")//vc6.0中需要添加此句
?if(PathFileExists(str))
?{
??CString strTemp;
??strTemp.Format("%s已存在!",str);
??AfxMessageBox(strTemp);
??return ;
?}
?#pragma comment(lib,"shlwapi.lib")//vc6.0中需要添加此句
?if(PathFileExists(str))
?{
??CString strTemp;
??strTemp.Format("%s已存在!",str);
??AfxMessageBox(strTemp);
??return ;
?}
轉(zhuǎn)載于:https://blog.51cto.com/9070303/1540536
總結(jié)
以上是生活随笔為你收集整理的vc判断文件夹是否存在的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 高等应用数学问题的matlab求解汇总
- 下一篇: poj 1781 In Danger