🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

BytesToString()...

#207
From: Gene Buckle
Date: Wed, 04 Jun 2008 21:57
32 lines
1647 bytes
Ok, given the following code:

void __fastcall TMainForm::ProcessInbound(TIdUDPListenerThread *AThread, TIdBytes *AData, TIdSocketHandle *ABinding) {
    AnsiString foo;
    foo = BytesToString(AData);
    OutputWindow->Lines->Add(foo);

}

Why am I getting this error:

Could not find a match for 'BytesToString(TBytesDynArray *)'

When the prototype in IdGlobals.hpp (which I'm including!) is:

extern PACKAGE AnsiString __fastcall BytesToString(const TIdBytes AValue, const TIdEncoding AEncoding = (TIdEncoding)(0x1))/* overload */;

TIdBytes is defined in IdGlobals.hpp as:

typedef DynamicArray<Byte >  TIdBytes;

Note that the equivalent code works just fine in Delphi.

How can I make BytesToString() work?!

tnx.

g.

-- 
Proud owner of F-15C 80-0007
http://www.f15sim.com - The only one of its kind.
Technical Details
Message-ID: <48470fc5@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,6019fb7918ad224f,start
X-Google-Attributes: gid11508e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Message-ID: <48470fc5@newsgroups.borland.com>
From: Gene Buckle <geneb@grumble.deltasoft.com>
Subject: BytesToString()...
Newsgroups: borland.public.cppbuilder.internet.socket
User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (Linux/2.6.23.15-80.fc7 (i686))
NNTP-Posting-Host: 199.254.199.46
Date: 4 Jun 2008 14:57:25 -0700
X-Trace: newsgroups.borland.com 1212616645 199.254.199.46 (4 Jun 2008 14:57:25 -0700)
Lines: 32
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
X-Original-Bytes: 1487