LPCWSTR location_url;
m_spWebBrowser->get_LocationURL((BSTR*)&location_url);如何在strstr中比较LPCWSTR和const char *?
示例:
if(strstr((location_url, ".html"))发布于 2012-11-06 19:11:18
您也可以将目标扩展名设置为宽字符串,并使用wcsstr
wchar_t* ext = L".html";
if (wcsstr(location_url, ext))https://stackoverflow.com/questions/13249606
复制相似问题