🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.learn.c-c++
Article #40

TNMUDP for Builder 3.0

#40
From: Slawomir Stanek
Date: Wed, 18 Oct 2000 00:00
18 lines
1250 bytes
I have a problem.
I send information from server to client. Protocol is UDP
I trying read this packet by:

  char *Buff;
  Buff = new char[NumberBytes];
  eSocket->ReadBuffer(Buff, NumberBytes, NumberBytes);
  Memo1->Lines->Add("Message is:"+Buff);

and it doesn't work, because compiler error about pointer.

I traing that:  Memo1->Lines->Add("Message is:"+(char)Buff);
it's doesn't work too

How I can conversion *Buff and show buffor in Memo1 (see above)

Thanx for any suggestions.
Slawomir Stanek
Technical Details
Message-ID: <8skr9l$art$1@news.tpi.pl>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 114592,31119448b3d2c47e,start
X-Google-Attributes: gid114592,public
X-Google-Thread: 10d4ba,31119448b3d2c47e,start
X-Google-Attributes: gid10d4ba,public
From: "Slawomir Stanek" <staneks@kki.net.pl>
Subject: TNMUDP for Builder 3.0
Date: 2000/10/18
Message-ID: <8skr9l$art$1@news.tpi.pl>
X-Deja-AN: 683001023
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
X-Complaints-To: usenet@tpi.pl
X-Trace: news.tpi.pl 971894901 11133 213.25.226.201 (18 Oct 2000 18:48:21 GMT)
Organization: tp.internet - http://www.tpi.pl
X-MSMail-Priority: Normal
NNTP-Posting-Date: 18 Oct 2000 18:48:21 GMT
Newsgroups: alt.comp.lang.learn.c-c++,att.lang.c++