🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Code problem

#4787
From: Hans Galema
Date: Tue, 14 Dec 2004 16:36
22 lines
1797 bytes
Maurice wrote:
> void __fastcall WriteRawToSocket(TCustomWinSocket *ASocket, void *AData,
> int ASize)
>     {
>         BYTE *Ptr = (BYTE*) Data;
 > ....

> When I compile it i get the following error:
> 
> [C++ Error] FunctionsUnit.h(6): E2147 'TCustomWinSocket' cannot start a 
> parameter declaration. Can anyone help me with this problem?

That is a misleading post as the error line will not be the first line
of the code as you try to suggest. The errorline is in the h file FunctionsUnit.h
so it will be on a line like:
void __fastcall WriteRawToSocket(TCustomWinSocket *ASocket, void *AData, int ASize);

which ends with a ';'.

I hope you did put the code in a cpp file.

Hans.
Technical Details
Message-ID: <41bf169d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41bf1302$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,29bbb0e4385845fe
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Tue, 14 Dec 2004 17:36:19 +0100
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: Code problem
References: <41bf1302$1@newsgroups.borland.com>
In-Reply-To: <41bf1302$1@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: <41bf169d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1103042205 129.125.201.248 (14 Dec 2004 08:36:45 -0800)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail