Downloading file program fails when IE7 installed

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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;
 
Hello, Glenn!

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

AFAIK IE7 introduces new wininet.dll version, that may cause this

What error code GetLastError() returns?

Additionally, you can as this question in the following NG

microsoft.public.inetsdk.programming.wininet

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 
Back
Top