🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

TIdNNTP, string data type and BCB 6

#4595
From: Warwick
Date: Sun, 16 Jan 2005 08:24
34 lines
2046 bytes
I am trying to use IIdNNTP.
Here is a member function of that component.

procedure GetNewNewsList(const ANewsgroups: string; const ADate: 
TDateTime; const AGMT: boolean; ADistributions: string; AList: 
TStrings); overload;

What is this string datatype?


My code to test it:

	TStringList *NewMessages = new TStringList;
         const AnsiString Distributions("nj");
         TDateTime dt;
         dt = dt.CurrentDateTime();
         dt -= 2/24; //messages in last two hours
         IdNNTP1->GetNewNewsList(  NewsGroups[0], dt , false, 				 
Distributions,  *(Memo1->Lines));


         delete NewMessages;
My compiler error:

The compiler cannot find a match for TIdNNTP:GetNewNewsList(const 
AnsiString, TDateTime, bool, const AnsiString, TStrings).

I am guessing that AnsiString is not good, I need string.
I tried declaring string types and using them - no good.
in desparation Tried pointers to char - no good.

Can this component even be used in CBuilder?

If so can someone please tell me how?
Technical Details
Message-ID: <41ea24b0@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!transit.nntp.hccnet.nl!transit1.nntp.hccnet.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,af8cc131fea57133,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sun, 16 Jan 2005 21:24:05 +1300
From: Warwick <warwickb1@extradotcodotnz>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a4) Gecko/20040927
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: TIdNNTP, string data type and BCB 6
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 210.86.40.130
Message-ID: <41ea24b0@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1105863856 210.86.40.130 (16 Jan 2005 00:24:16 -0800)
Lines: 36
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!transit.nntp.hccnet.nl!transit1.nntp.hccnet.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail