Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,888 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi
Should check NULL return on CHttpConnection::OpenRequest() and CInternetSession::GetHttpConnection()?! because these functions throw an exception on fail and I have to use try-catch block.
try
{
pConnection = pSession->GetHttpConnection(...);
}
catch (CInternetException* e)
{
e->Delete();
return;
}
if (pConnection) // can remove this if; is it safe?
{
}
thanks
They're not documented to return NULL, so the check should be pointless.