🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Instantiate a TIdFTP object

#916
From: Davi Vennervald
Date: Tue, 04 Sep 2007 12:02
32 lines
1934 bytes
For what it worth, I'm running C++ 6 and Indy 9.0.17

Remy Lebeau (TeamB) skrev:
> "Davi Vennervald" <dvennervald@gmail.com> wrote in message
> news:46d819cb$1@newsgroups.borland.com...
> 
>> Is there anyway to instantiate a TIdFtp without dropping
>> a vcl component on a form?
> 
> Of course there is.  TIdFTP is a normal component, and all components can be
> instantiated dynamically.
> 
>> Sort of: TIdFTP *ftpInstance = new TIdFTP( this );
> 
> That is exactly what you need.  Did you actually try it yet?
Yes, I did try it. But my mistake was that 'this' wasn't a TComponent. I 
Null'ed it instead and it work like a charm.

Thx for your input

Davi


> 
>> I trying to make a connection class and would like to make this work
> 
> Are you having a particular problem with it?
> 
> 
> Gambit
> 
> 
Technical Details
Message-ID: <46dd4955$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!eweka.nl!lightspeed.eweka.nl!feeder3.cambrium.nl!feeder2.cambrium.nl!feed.tweaknews.nl!193.201.147.68.MISMATCH!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <46d819cb$1@newsgroups.borland.com> <46d84f23$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,a2ee90a627c3ab1f
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Tue, 04 Sep 2007 14:02:29 +0200
From: Davi Vennervald <dvennervald@gmail.com>
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: Instantiate a TIdFTP object
References: <46d819cb$1@newsgroups.borland.com> <46d84f23$1@newsgroups.borland.com>
In-Reply-To: <46d84f23$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 217.157.216.134
Message-ID: <46dd4955$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1188907349 217.157.216.134 (4 Sep 2007 05:02:29 -0700)
Lines: 32
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!eweka.nl!lightspeed.eweka.nl!feeder3.cambrium.nl!feeder2.cambrium.nl!feed.tweaknews.nl!193.201.147.68.MISMATCH!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail