🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TServerSocket

#3789
From: Hans Galema
Date: Thu, 28 Apr 2005 07:33
22 lines
1646 bytes
bigtommy wrote:

> How can I create TServerSocket (and also TClientSocket) component without 
> placing it on the Form. I would like to create it dynamically in the 
> included file.

In the 'included file' ? Please explain. Of course you can create
an instance of TServerSocket dynamically.

> When I try to use constructor new TServerSocket(this) obviously it's 
> impossible, because there is no such constructor using my own class which 
> isn't a valid component

This is all not obvious and/or clear for me. Please be a bit more specific.

   TServerSocket *ServerSocket = new TServerSocket ( NULL );

   // use ...

   delete ServerSocket;

Hans.
Technical Details
Message-ID: <42709273@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <42708f81@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,e110a24513508cb8
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 28 Apr 2005 09:33:39 +0200
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: TServerSocket
References: <42708f81@newsgroups.borland.com>
In-Reply-To: <42708f81@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 129.125.201.248
Message-ID: <42709273@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1114673779 129.125.201.248 (28 Apr 2005 00:36:19 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail