65,208
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
#include "windows.h"
#pragma comment(lib, "shlwapi.lib")
#include "shlwapi.h"
using namespace std;
int main()
{
WCHAR *pwszFile = L"中问他个吧啊比";
WCHAR *pwszSpec = L"*吧??";
BOOL bRet = PathMatchSpecW(pwszFile, pwszSpec);
if (TRUE == bRet)
{
cout<<"OK"<<endl;
}
char *ptszFile = "中问他个吧啊比";
char *ptszSpec = "*吧??";
bRet = PathMatchSpecA(ptszFile, ptszSpec);
if (TRUE == bRet)
{
cout<<"OK"<<endl;
}
}