PathFileExists 函数可以用来查看一个文件或文件夹是否存在。
用法:
在头文件中
#include <shlwapi.h>
#pragma comment(lib,"Shlwapi.lib") //如果没有这行,会出现link错误
if (PathFileExists(strDBPath))
{
}
else //不存在
本文详细介绍了PathFileExists函数的使用方法,包括其头文件引用、语法结构以及如何判断文件或文件夹是否存在。
PathFileExists 函数可以用来查看一个文件或文件夹是否存在。
用法:
在头文件中
#include <shlwapi.h>
#pragma comment(lib,"Shlwapi.lib") //如果没有这行,会出现link错误
if (PathFileExists(strDBPath))
{
}
else //不存在
449
3482
5502

被折叠的 条评论
为什么被折叠?