🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TServerClientWinSocket->Data Help Please

#216
From: DreamChaser
Date: Fri, 06 Jun 2008 05:43
20 lines
1562 bytes
I was close, I just had the second '*' on the wrong side :)
Thanks again G.
DC

Remy Lebeau (TeamB) wrote:
> "DreamChaser" <NO-Spam@No-Span.net> wrote in message 
> news:48482aae$1@newsgroups.borland.com...
> 
>> How do I assign/read a string to the Socket->Data?
>> Is it a double pointer?
> 
> No.  Simply dereference the pointer you already have, ie:
> 
>     *((AnsiString*)(Socket->Data)) = "DreamChaser";
>     AnsiString asName = *((AnsiString*)(Socket->Data));
> 
> 
> Gambit 
> 
> 
Technical Details
Message-ID: <4848ce9b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <48416d7a$1@newsgroups.borland.com> <48441ff3$1@newsgroups.borland.com> <48482aae$1@newsgroups.borland.com> <4848399e$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,67ea390c53ca6f1c
X-Google-Attributes: gid11508e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 06 Jun 2008 00:43:53 -0500
From: DreamChaser <NO-Spam@No-Span.net>
User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: TServerClientWinSocket->Data Help Please
References: <48416d7a$1@newsgroups.borland.com> <48441ff3$1@newsgroups.borland.com> <48482aae$1@newsgroups.borland.com> <4848399e$1@newsgroups.borland.com>
In-Reply-To: <4848399e$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 65.6.192.60
Message-ID: <4848ce9b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1212731035 65.6.192.60 (5 Jun 2008 22:43:55 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail