LPCWSTR location_url;
m_spWebBrowser->get_LocationURL((BSTR*)&location_url);
如何将LPCWSTR
与strstr
中的CC_1进行比较?
示例:
if(strstr((location_url, ".html"))
您也可以使目标扩展名也宽阔,并使用WCSSTR
wchar_t* ext = L".html";
if (wcsstr(location_url, ext))