Article View: borland.public.cppbuilder.internet.socket
Article #4935Re: Dynamic Socket creation
From: Dev Support
Date: Thu, 18 Nov 2004 17:28
Date: Thu, 18 Nov 2004 17:28
53 lines
2027 bytes
2027 bytes
Remy:
OK, your change did help BUT now I'm to here...
The error, I now get is
[C++ Error] sock100.cpp(13): E2285 Could not find a match for
'TClientSocket::TClientSocket()'
Sorry for the elementary nature here but I'm a newbie to BCB!
#include <vcl.h>
#include <ScktComp.hpp>
TClientSocket *sock[10];
int sock_create_sockets(int qty)
{
int c = 0;
for (c = 0; c < qty; c++)
{
sock[c] = new TClientSocket(); <<------ERRROR
}
return 1;
}
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:419bc640$1@newsgroups.borland.com...
>
> "Dev Support" <infsoft@centurytel.net> wrote in message
> news:419bc484$1@newsgroups.borland.com...
>
> > The following code generates a declaration synatax error in the
> > TClientSocket line. Sorry for the simplicity but what am I doing
> > wrong here???
>
> You did not include ScktComp.hpp into your code. The compiler won't know
> what TClientSocket is.
>
> > for (c = 0; c < qty; c++)
>
> Do you verify that qty never exceeds 10?
>
>
> Gambit
>
>
Technical Details
Message-ID:
<419cbc46$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<419bc484$1@newsgroups.borland.com> <419bc640$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,5836520d8672abcd X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Dev Support" <infsoft@centurytel.net> Newsgroups: borland.public.cppbuilder.internet.socket References: <419bc484$1@newsgroups.borland.com> <419bc640$1@newsgroups.borland.com> Subject: Re: Dynamic Socket creation Date: Thu, 18 Nov 2004 09:28:35 -0800 Lines: 55 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 69.29.175.192 Message-ID: <419cbc46$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1100790854 69.29.175.192 (18 Nov 2004 07:14:14 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail