You can try this...
std::wstring wsURL = bstr;
size_t DSlashLoc = wsURL.find(L"//");
if (DSlashLoc >= 0)
{
wsURL.erase(wsURL.begin(), wsURL.begin() + DSlashLoc + 2);
wsURL.erase(wsURL.begin() + wsURL.find(L'/'));
}
wprintf(L" URL: %s\n\n", wsURL.c_str());