Article View: borland.public.cppbuilder.upgrade
Article #122Reference problem to upgrade BCB6 project to CB2007.
From: Gene
Date: Thu, 26 Jun 2008 01:19
Date: Thu, 26 Jun 2008 01:19
18 lines
1474 bytes
1474 bytes
Hello, Guys, I have got a reference problem here when I upgrade my BCB6 project to CB 2007: I defined a function that takes string reference as carry-in parameter, when I called the function I passed a string to the function. It was ok in BCB6 but I got error in CB2007 saying: E2357 Reference initialized with 'const string', needs lvalue of type 'string' E2342 Type mismatch in parameter 'thestring' (wanted 'string &',got 'string') Is CB2007 a lot stricter than BCB6? Or where I should change the setups? Thanks in advance. Gene.
Technical Details
Message-ID:
<4862eeab$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!news.isoc.lu!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10529a,76e41fbbb6ef160,start X-Google-Attributes: gid10529a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Gene" <shenjige@yahoo.ca> Newsgroups: borland.public.cppbuilder.upgrade Subject: Reference problem to upgrade BCB6 project to CB2007. Date: Thu, 26 Jun 2008 09:19:34 +0800 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Antivirus: avast! (VPS 080625-0, 2008-06-25), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 116.25.136.110 Message-ID: <4862eeab$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1214443179 116.25.136.110 (25 Jun 2008 18:19:39 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!news.isoc.lu!newsgroups.borland.com!not-for-mail