本文是在windows环境下,使用的是vs2019编译器。
下面是使用WindowsAPI遍历文件夹文件的代码
下面展示 详细的代码
。
void EnumFiles(const wchar_t *path)
{
WIN32_FIND_DATA p;
std::wstring fullpath = path;
fullpath.append(L"\\*.*"); //可通过
HANDLE h = FindFirstFileW
本文是在windows环境下,使用的是vs2019编译器。
下面是使用WindowsAPI遍历文件夹文件的代码
下面展示 详细的代码
。
void EnumFiles(const wchar_t *path)
{
WIN32_FIND_DATA p;
std::wstring fullpath = path;
fullpath.append(L"\\*.*"); //可通过
HANDLE h = FindFirstFileW