wstring 转换成 wchar_t 转换成小写

来源:互联网 发布:ubuntu 查看硬盘信息 编辑:程序博客网 时间:2024/04/25 17:19

std::wstring strOpenFile = L"d:\\2222.7z";


int dotPos = pDlg->_strFullPath.find_last_of(L".");
std::wstring strFix = strOpenFile .substr(dotPos + 1, strOpenFile .length());
wchar_t wTolower[512] = { 0 };


wcscpy(wTolower, strFix.c_str());


_wcslwr_s(wTolower, wcslen(wTolower) + 1);
0 0
原创粉丝点击