如何比较strstr(lpcwstr,char*);


LPCWSTR location_url;
m_spWebBrowser->get_LocationURL((BSTR*)&location_url);

如何将LPCWSTRstrstr中的CC_1进行比较?

示例:

if(strstr((location_url, ".html"))

您也可以使目标扩展名也宽阔,并使用WCSSTR

wchar_t* ext = L".html";
if (wcsstr(location_url, ext))

最新更新