Board index » cppbuilder » Upgrading from BCB 1.0 to 4.0

Upgrading from BCB 1.0 to 4.0

I have a Builder 1.0 project that I am converting to Builder 4.0.  When I
compiled it (after deleting all the *.il* and .obj files), I get the
following errors:

(C++ Error) traits.h(98): E2293) expected.
(C++ Error) traits.h(212): E2293) expected.
(C++ Error) traits.h(314): E2293) expected.
(C++ Error) rwlocale.h(415): E2293) expected.
(C++ Error) rwlocale.cc(69): E2293) expected.

Any ideas on how to fix them?  As a follow-up, are there any  other problems
out there that I am likely to run into in upgrading 1.0 projects to 4.0?

Dean Petters
dpett...@mindspring.com

 

Re:Upgrading from BCB 1.0 to 4.0


There are many things to which you should be paying attention.  The entire
RTL is different, particularly iostreams.  It's a total rewrite, this time
implemented by RogueWave, not by Borland.  The compiler accepts a different
flavor of C++, one that is much more ANSI complient.  It's all fairly close,
but there are many issues.  Components need to be replaced as well, if you
use 3rd party components, try to get updated versions.  It is not a trivial
job, but it is not nearly as big of a pain as upgrading 16-bit code to
32-bits.

I have no idea what is causing the problems you posted.  Some source code
that causes this would be helpful.

Chris (TeamB)

Quote
Dean Petters wrote in message <7g9rfr$o6...@forums.borland.com>...
>I have a Builder 1.0 project that I am converting to Builder 4.0.  When I
>compiled it (after deleting all the *.il* and .obj files), I get the
>following errors:

>(C++ Error) traits.h(98): E2293) expected.
>(C++ Error) traits.h(212): E2293) expected.
>(C++ Error) traits.h(314): E2293) expected.
>(C++ Error) rwlocale.h(415): E2293) expected.
>(C++ Error) rwlocale.cc(69): E2293) expected.

>Any ideas on how to fix them?  As a follow-up, are there any  other
problems
>out there that I am likely to run into in upgrading 1.0 projects to 4.0?

>Dean Petters
>dpett...@mindspring.com

Re:Upgrading from BCB 1.0 to 4.0


Dean,

Quote
> ....As a follow-up, are there any  other problems
> out there that I am likely to run into in upgrading 1.0 projects to 4.0?

Yes, packages were new to BCB3, so if you use components
be prepared for some converting. There is a help topic, something
like "Trouble shooting component installation" that covers many
of the issues. If you are manually converting component source
use the the IDE to generate a new component for you and use
that source as a model ( you have to get all the "package"
thingees in the right place ).
Another possible issue is that the IDE will indeed open and
convert 1.0 .MAK project files (but it doesn't upgrade the
extension to the new .BPR ), but I would suggest creating
new project files and re-adding the source (it's easy with
multi-select add-to-project).
If you re-use source (e.g. forms) from BCB1 be aware that
again you might face PACKAGE modifier issues. For
example, if you include a BCB1 header into your
project source you might have to manually modify the
BCB1 header. But, again, you can use the BCB4
IDE-generated source as the model. e.g:
BCB1...
extern TForm3 *Form3;

BCB4...
extern PACKAGE TForm3 *Form3;

Re:Upgrading from BCB 1.0 to 4.0


If you have your own components, for which you need to make a package, note the
problem (and solution) I had regarding Creating Package Problems... I too was
converting from 1.0 to 4.0.  If I come across anything else I'll let you know.
Quote
Dean Petters wrote:
> I have a Builder 1.0 project that I am converting to Builder 4.0.  When I
> compiled it (after deleting all the *.il* and .obj files), I get the
> following errors:

> (C++ Error) traits.h(98): E2293) expected.
> (C++ Error) traits.h(212): E2293) expected.
> (C++ Error) traits.h(314): E2293) expected.
> (C++ Error) rwlocale.h(415): E2293) expected.
> (C++ Error) rwlocale.cc(69): E2293) expected.

> Any ideas on how to fix them?  As a follow-up, are there any  other problems
> out there that I am likely to run into in upgrading 1.0 projects to 4.0?

> Dean Petters
> dpett...@mindspring.com

Other Threads