Article View: borland.public.cppbuilder.internet.socket
Article #961Re: Problem using TIdFTP in C++ Builder 2007. List() doesn't work
From: Remy Lebeau (TeamB)
Date: Sat, 21 Jul 2007 00:40
Date: Sat, 21 Jul 2007 00:40
30 lines
2089 bytes
2089 bytes
"Star" <noemai@noemail.com> wrote in message news:46a11619$1@newsgroups.borland.com... > I think it would be easier if you could specify the > parser by code instead of adding header files... Well, that is what happens when you use a header file - you are specifying in code what you want to use. You can do dynamic registrations if you want. There are RegisterFTPListParser() and UnRegisterFTPListParser() functions implemented in the IdFTPListParseBase unit. > Anyway, I have tried it but still doesn't work. You haven't said what is not actually working. So I am assuming that the Count is still returning 0? If so, then either the parsers are not being registered correctly at program startup, or else you are simply retreiving a listing that there is no parser available for. > void __fastcall TForm1::FormCreate(TObject *Sender) DO NOT use the OnCreate event in C++! It is a Delphi idiom that can produce illegal behavior in C++, as it ican be triggered before the constructor in run. Use the actual constructor instead, or else wait until after the form is fully constructed. Gambit
Technical Details
Message-ID:
<46a15625$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<46a108f5$1@newsgroups.borland.com> <46a11115$1@newsgroups.borland.com> <46a11619$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,f37f99fb538f42a3 X-Google-Attributes: gid11508e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <46a108f5$1@newsgroups.borland.com> <46a11115$1@newsgroups.borland.com> <46a11619$1@newsgroups.borland.com> Subject: Re: Problem using TIdFTP in C++ Builder 2007. List() doesn't work Date: Fri, 20 Jul 2007 17:40:54 -0700 Lines: 32 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: 75.82.252.126 Message-ID: <46a15625$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1184978469 75.82.252.126 (20 Jul 2007 17:41:09 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail