Article View: borland.public.cppbuilder.internet.socket
Article #4596Re: TIdNNTP, string data type and BCB 6
From: Remy Lebeau (TeamB)
Date: Sun, 16 Jan 2005 20:15
Date: Sun, 16 Jan 2005 20:15
36 lines
1776 bytes
1776 bytes
"Warwick" <warwickb1@extradotcodotnz> wrote in message
news:41ea24b0@newsgroups.borland.com...
> What is this string datatype?
It is exactly what its name suggests - a string of characters. In C++, the
equivilent is the AnsiString class.
> TStringList *NewMessages = new TStringList;
Why are you creating a TStringList instance that you never actually use?
> IdNNTP1->GetNewNewsList( NewsGroups[0], dt , false,
> Distributions, *(Memo1->Lines));
Why are you dereferencing the Memo->Lines pointer? Do not do that. That is
the cause of your error. Use the following code instead:
IdNNTP1->GetNewNewsList(NewsGroups[0], dt, false, Distributions,
Memo1->Lines);
> I am guessing that AnsiString is not good
You guess incorrectly.
> I need string.
That is exactly what AnsiString is.
> Can this component even be used in CBuilder?
Yes.
Gambit
Technical Details
Message-ID:
<41eacae6$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<41ea24b0@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,af8cc131fea57133 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <41ea24b0@newsgroups.borland.com> Subject: Re: TIdNNTP, string data type and BCB 6 Date: Sun, 16 Jan 2005 12:15:30 -0800 Lines: 38 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: 68.69.17.41 Message-ID: <41eacae6$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1105906406 68.69.17.41 (16 Jan 2005 12:13:26 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail