🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

problems with vectors when migrate from BCB6 to BDS2006

#50
From: Roland
Date: Thu, 04 Oct 2007 12:35
60 lines
2204 bytes
I've problems when migrate from BCB6 to BDS2006. In BCB6 iterators of
vectors can handled over to functions

and can be converted to different types as shown below. With BDS2006
it semms to be impossible or more restricted.

Is there any solution for this problem?




class PACKAGE TObcStation : public TCsStation
{
public:
    __fastcall TObcStation(const UCHAR StationNr, TCsProcessor* Processor);


....

}




//---------------------------------------------------------------------------
void __fastcall TCsSystem::SearchSomeWhat()
{
  vector <TObcProcessor>::iterator obc_iter;


  for(obc_iter = ObcProcessors.begin(); obc_iter < ObcProcessors.end();
obc_iter++) {

   TObcStation Obc9600Station(ucStation, obc_iter); //here I get Error E2285
like: "no match found of..."
  }

....

//---------------------------------------------------------------------------
void __fastcall TCsSystem::SearchSomeWhat()
{
  vector <TObcProcessor>::iterator obc_iter;


  for(obc_iter = ObcProcessors.begin(); obc_iter < ObcProcessors.end();
obc_iter++) {

   TObcStation Obc9600Station(ucStation, (TCsProcessor*)obc_iter); //here I
get Error E2031, like: "type casting forbidden"
  }

Roland
Technical Details
Message-ID: <op.tzoalmyvo3vsnd@station33.intern>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10529a,400bd584fc7b6828,start
X-Google-Attributes: gid10529a,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 04 Oct 2007 14:35:36 +0200
Subject: problems with vectors when migrate from BCB6 to BDS2006
From: Roland <neubert_nosp@nosp_wst.eu>
Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.upgrade
Content-Transfer-Encoding: Quoted-Printable
Message-ID: <op.tzoalmyvo3vsnd@station33.intern>
User-Agent: Opera Mail/9.23 (Win32)
NNTP-Posting-Host: 84.135.30.22
X-Trace: newsgroups.borland.com 1191501351 84.135.30.22 (4 Oct 2007 05:35:51 -0700)
Lines: 60
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail