Thread View: borland.public.cppbuilder.upgrade
4 messages
4 total messages
Started by Roland Neubert
Wed, 26 Sep 2007 09:03
BCB6 to BDS2006 problems with vectors
Author: Roland Neubert
Date: Wed, 26 Sep 2007 09:03
Date: Wed, 26 Sep 2007 09:03
53 lines
2175 bytes
2175 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
Re: BCB6 to BDS2006 problems with vectors
Author: Craig Farrell
Date: Wed, 26 Sep 2007 18:24
Date: Wed, 26 Sep 2007 18:24
16 lines
1416 bytes
1416 bytes
Hi, > like: "no match found of..." > get Error E2031, like: "type casting forbidden" You could try some of the compatibility options by going to Project Options C++ Compiler | Advanced Options | Other Options and put in: -Vbo or -Vo To see the explanation of each run the command: bcc32.exe -h -V --Craig
Re: BCB6 to BDS2006 problems with vectors
Author: Roland neubertatwst.eu
Date: Mon, 01 Oct 2007 06:39
Date: Mon, 01 Oct 2007 06:39
8 lines
945 bytes
945 bytes
Hi, it seems to bb not the solution for this problem. I still got the same err msg's. I also tried some other options but not success. Roland
Re: BCB6 to BDS2006 problems with vectors
Author: Craig Farrell
Date: Thu, 04 Oct 2007 18:06
Date: Thu, 04 Oct 2007 18:06
11 lines
1276 bytes
1276 bytes
Hi, > I still got the same err msg's. Sorry that idea didn't pan out. You might ask this in the language group: borland.public.cppbuilder.language.cpp as it could be a general change in STL issue. --Craig
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads