Discussion:
My OpenRequest fails when Internet Explorer 7 installed
(too old to reply)
Glenn Graham
2006-08-07 21:42:01 UTC
Permalink
My web download program stopped working when IE7 beta 1-3 was installed.

Error when calling OpenRequest in CHttpConnection. The Error is Created by
ASSERT(hFile != NULL) in mehtod CInternetFile::CInternetFile.

My call
//pServer = session.GetHttpConnection(strServerName, nPort);
pServer = session.GetHttpConnection(strServerName, nPort,
pstrUserName, pstrPassword);
lpContent = szContent;
LogDebugInfo("ProcessURLEntry calling OpenRequest...");
pFile = pServer->OpenRequest(CHttpConnection::HTTP_VERB_GET,
strObject, pstrReferer, 1, &lpContent, NULL, dwHttpRequestFlags);

My data
CString strObject =”myFile”
LPCTSTR pstrReferer = NULL;
lpContent = "text/html, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
*/*";
DWORD dwHttpRequestFlags = INTERNET_FLAG_RELOAD;
--
NavComp Inc.
GIS C++ programmer
Austin, TX
Vladimir Scherbina
2006-08-20 14:34:52 UTC
Permalink
Well known issue. I also met this problem when installed IE7Beta3. Please
report this problem to connect.microsoft.com
--
Vladimir
Post by Glenn Graham
My web download program stopped working when IE7 beta 1-3 was installed.
Error when calling OpenRequest in CHttpConnection. The Error is Created by
ASSERT(hFile != NULL) in mehtod CInternetFile::CInternetFile.
My call
//pServer = session.GetHttpConnection(strServerName, nPort);
pServer = session.GetHttpConnection(strServerName, nPort,
pstrUserName, pstrPassword);
lpContent = szContent;
LogDebugInfo("ProcessURLEntry calling OpenRequest...");
pFile = pServer->OpenRequest(CHttpConnection::HTTP_VERB_GET,
strObject, pstrReferer, 1, &lpContent, NULL, dwHttpRequestFlags);
My data
CString strObject ="myFile"
LPCTSTR pstrReferer = NULL;
lpContent = "text/html, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
*/*";
DWORD dwHttpRequestFlags = INTERNET_FLAG_RELOAD;
--
NavComp Inc.
GIS C++ programmer
Austin, TX
Loading...