🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.upgrade
Article #127

WideString worked in BCB6 but not in BDS2006

#127
From: John Mc
Date: Fri, 25 Jul 2008 18:43
22 lines
1539 bytes
I have some code that looks something like this:

 AnsiString strName;
WideString nameWideStr;

// some code to build strName

ThirdPartyFunc1(nameWideStr);

This has worked nicely under BCB 6.  Now I am trying to compile the code 
under BDS2006 and get the following errors:

[C++ Error] GEMUtils.cpp(83): E2034 Cannot convert 'WideString' to 'wchar_t 
*'
[C++ Error] GEMUtils.cpp(83): E2342 Type mismatch in parameter 'name' 
(wanted 'wchar_t *', got 'WideString')

What do I have to do to get this to work under BDS2006?

Thanks in advance for your help.

J 
Technical Details
Message-ID: <488a1ebe@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: 10529a,a5203f0a5817ae0b,start
X-Google-Attributes: gid10529a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "John Mc" <don't spam me>
Newsgroups: borland.public.cppbuilder.upgrade
Subject: WideString  worked in BCB6  but not in BDS2006
Date: Fri, 25 Jul 2008 14:43:10 -0400
Lines: 24
Organization: Suss MicroTec
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 12.152.229.254
Message-ID: <488a1ebe@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1217011390 12.152.229.254 (25 Jul 2008 11:43:10 -0700)
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: 1374