Article View: borland.public.cppbuilder.internet.web
Article #514Re: Downloading and resuming
From: Will Bright
Date: Wed, 08 Nov 2006 23:03
Date: Wed, 08 Nov 2006 23:03
39 lines
2642 bytes
2642 bytes
> GetLastError() is guaranteed to return a valid error code if any of the > WinInet functions return FALSE. I'm telling you the truth, GetLastError() is returning nothing at all. > Why are you calling InternetConnect()? The code I gave you was not doing > that. I used InternetConnect() because in the original code I could not get past the HttpOpenRequest() call. Then I looked at the function for that call and it claimed that you needed a handle from InternetConnect(). That's when I put InternetConnect() in there. HttpOpenRequest() HINTERNET WINAPI HttpOpenRequest( HINTERNET hConnect, LPCTSTR lpszVerb, LPCTSTR lpszObjectName, LPCTSTR lpszVersion, LPCTSTR lpszReferrer, LPCTSTR* lplpszAcceptTypes, DWORD dwFlags, DWORD dwContext );Parameters hConnect [in] Handle to an HTTP session returned by InternetConnect. Maybe you will see something that I am overlooking, I'm telling you I just don't get this at all. No errors returned from GetLastError() is really weird. I could understand if it said something like overlapped operation in progress, but I am not even getting that. I am uploading the sample to the attachments dir, if you can, please look at it. There is nothing in there except for the fucntion calls to download the file. Will
Technical Details
Message-ID:
<45526262@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news2.volia.net!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<454f7d80$1@newsgroups.borland.com> <454fa637$1@newsgroups.borland.com> <454fb7d0$1@newsgroups.borland.com> <454fe1a9$2@newsgroups.borland.com> <454ff6ea$1@newsgroups.borland.com> <4550497c@newsgroups.borland.com> <45512485$1@newsgroups.borland.com> <45512675@newsgroups.borland.com> <45515872$1@newsgroups.borland.com> <45516b6e$1@newsgroups.borland.com> <4551df26@newsgroups.borland.com> <455238e0$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,f20f86396ab98121 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Will Bright" <no@spam.com> From: "Will Bright" <no@spam.com> Newsgroups: borland.public.cppbuilder.internet.web References: <454f7d80$1@newsgroups.borland.com> <454fa637$1@newsgroups.borland.com> <454fb7d0$1@newsgroups.borland.com> <454fe1a9$2@newsgroups.borland.com> <454ff6ea$1@newsgroups.borland.com> <4550497c@newsgroups.borland.com> <45512485$1@newsgroups.borland.com> <45512675@newsgroups.borland.com> <45515872$1@newsgroups.borland.com> <45516b6e$1@newsgroups.borland.com> <4551df26@newsgroups.borland.com> <455238e0$1@newsgroups.borland.com> Subject: Re: Downloading and resuming Date: Wed, 8 Nov 2006 17:03:57 -0600 Lines: 41 Organization: .. X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 66.61.158.166 Message-ID: <45526262@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1163027042 66.61.158.166 (8 Nov 2006 15:04:02 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news2.volia.net!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail