Newsgroups : Microsoft : microsoft.public.inetsdk.programming.wininet : 2006 Aug : My OpenRequest fails when Internet Explorer 7 installed
| Subject: | My OpenRequest fails when Internet Explorer 7 installed |
| Posted by: | "Glenn Graham" (glenngrah..@discussions.microsoft.com) |
| Date: | Mon, 7 Aug 2006 14:42:01 |
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