🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #515

Re: Downloading and resuming

#515
From: Remy Lebeau (TeamB)
Date: Thu, 09 Nov 2006 00:06
25 lines
2172 bytes
"Will Bright" <no@spam.com> wrote in message
news:45526262@newsgroups.borland.com...

> I'm telling you the truth, GetLastError() is returning nothing at all.

So, you are saying that it is returning 0 every time?  Have you tried
calling GetLastError() BEFORE calling any other VCL code?  For example:

    if(!HttpSendRequest(hFile, NULL, 0, NULL, 0))
    {
        DWORD dwErrorCode = GetLastError(); // <-- cannot return 0!
        ListBox1->Items->Add("HttpSendRequest() " +
SysErrorMessage(dwErrorCode));
        throw Exception("unable to send file request to the server");
    }

> 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().

Ok.


Gambit
Technical Details
Message-ID: <455271d3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
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> <45526262@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
From: "Remy Lebeau \(TeamB\)" <no.spam@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> <45526262@newsgroups.borland.com>
Subject: Re: Downloading and resuming
Date: Wed, 8 Nov 2006 16:06:23 -0800
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 69.169.4.232
Message-ID: <455271d3$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1163030995 69.169.4.232 (8 Nov 2006 16:09:55 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail