πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1671

Re: IdHTTP error when instanstiate at runtime

#1671
From: sam
Date: Sat, 23 Dec 2006 17:24
32 lines
1795 bytes
I use this code :
TIdHTTP *Http= new TIdHTTP(NULL);

        if(Http){
           Http->Port=80;
           sUrl = Http->Get(sUrl);
           delete Http;
        }
Sam
"Hans Galema" <notused@notused.nl> a οΏ½crit dans le message de news: 
458d56b5@newsgroups.borland.com...
> Hans Galema wrote:
>
>> Run.
>
> Well you could instantiate one in the folowing way:
>
> private: // User declarations
> TIdHTTP *IdHTTP;
>
> __fastcall TForm1::TForm1(TComponent* Owner)
> : TForm(Owner)
> {
>   IdHTTP = new TIdHTTP ( this );
> }
>
> void __fastcall TForm1::FormClose(TObject *Sender, TCloseAction &Action)
> {
>   delete IdHTTP;
> }
>
> Hans. 
Technical Details
Message-ID: <458d665d@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <458d48f2@newsgroups.borland.com> <458d4f74$1@newsgroups.borland.com> <458d510e@newsgroups.borland.com> <458d561c@newsgroups.borland.com> <458d56b5@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,9cabd718379db140
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII
Reply-To: "sam" <nospam@nospam.com>
From: "sam" <nospam@nospam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <458d48f2@newsgroups.borland.com> <458d4f74$1@newsgroups.borland.com> <458d510e@newsgroups.borland.com> <458d561c@newsgroups.borland.com> <458d56b5@newsgroups.borland.com>
Subject: Re: IdHTTP error when  instanstiate at runtime
Date: Sat, 23 Dec 2006 17:24:56 -0000
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
NNTP-Posting-Host: 41.207.179.135
Message-ID: <458d665d@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1166894685 41.207.179.135 (23 Dec 2006 09:24:45 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail