🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.programming
Article #27

Ansistring and C string in Borland C++ builder 4

#27
From: JP
Date: Wed, 14 Feb 2001 15:11
15 lines
1625 bytes
Hello,

I'm trying to do the following in Borland C++ builder :

char iets[15];
iets[] = ((Edit_ServerIP -> Text).c_str());

where Edit_ServerIP is an TEdit component. In other words : I'm trying to
convert an Ansistring from an TEdit to a null-terminated character array.
But I can't seem to get this working without compiler-errors. How can I get
this working?

Thanks a lot,

JP
Technical Details
Message-ID: <#zacCiplAHA.84@net005s.hetnet.nl>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!134.222.94.5!npeer.kpnqwest.net!news2.kpn.net!news.kpn.net!master.news.hetnet.nl!news2.hetnet.nl

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102541,acb8361c3e93f1ce,start
X-Google-Attributes: gid102541,public
X-Google-Thread: 10dce5,acb8361c3e93f1ce,start
X-Google-Attributes: gid10dce5,public
X-Google-Thread: feb9e,acb8361c3e93f1ce,start
X-Google-Attributes: gidfeb9e,public
X-Google-Thread: 10640b,acb8361c3e93f1ce,start
X-Google-Attributes: gid10640b,public
X-Google-Thread: 10a78a,acb8361c3e93f1ce,start
X-Google-Attributes: gid10a78a,public
X-Google-ArrivalTime: 2001-02-14 07:14:43 PST
From: "JP" <jaapjp@hetnet.nl>
Subject: Ansistring and C string in Borland C++ builder 4
Date: Wed, 14 Feb 2001 16:11:11 +0100
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Message-ID: <#zacCiplAHA.84@net005s.hetnet.nl>
Newsgroups: alt.comp.programming,alt.support.programming,borland.public.cpp.ide,borland.public.cppbuilder.students,forum.advanced.programming
NNTP-Posting-Host: ipd54b5fe3.free.wxs.nl 213.75.95.227
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!134.222.94.5!npeer.kpnqwest.net!news2.kpn.net!news.kpn.net!master.news.hetnet.nl!news2.hetnet.nl