🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Threads and Indy v9 NNTP->GetBody

#5826
From: Remy Lebeau (TeamB)
Date: Sat, 31 May 2003 21:04
21 lines
1853 bytes
"anthony" <anthony@nospam.com> wrote in message
news:3ed8bf6a$1@newsgroups.borland.com...

> When I use MyNNTP = new TIdNNTP;  in the
> Execute function of TThread and compile the
> project I get the error message,
>
> [C++ Error] threads1.cpp(57): E2285 Could not
> find a match for 'TIdNNTP::TIdNNTP()'.

You are trying to instantiate TIdNNTP using a default constructor, which it
does not have.  The actual constructor expects a TComponent* parameter.
Just pass it NULL.

    MyNNTP = new TIdNNTP(NULL);
    ...
    delete MyNNTP;


Gambit
Technical Details
Message-ID: <3ed9183b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!c03.atl99!news.webusenet.com!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3ed3f293$1@newsgroups.borland.com> <3ed3fd3c$1@newsgroups.borland.com> <Xns9389E13BF9B11cpub@127.0.0.1> <3ed500b4$1@newsgroups.borland.com> <3ed8bf6a$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1036eb,d0af1d6930cf27c2
X-Google-Attributes: gid1036eb,public
X-Google-Thread: 11508e,d0af1d6930cf27c2
X-Google-Attributes: gid11508e,public
X-Google-ArrivalTime: 2003-05-31 14:02:28 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.internet.socket,borland.public.delphi.internet.winsock
References: <3ed3f293$1@newsgroups.borland.com> <3ed3fd3c$1@newsgroups.borland.com> <Xns9389E13BF9B11cpub@127.0.0.1> <3ed500b4$1@newsgroups.borland.com> <3ed8bf6a$1@newsgroups.borland.com>
Subject: Re: Threads and Indy v9 NNTP->GetBody
Date: Sat, 31 May 2003 14:04:37 -0700
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3ed9183b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1054414907 207.175.226.26 (31 May 2003 14:01:47 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!c03.atl99!news.webusenet.com!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail