Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C++Builder 4 or 6 Pro Code in New C++Builder

Status
Not open for further replies.

alhmn

Programmer
Feb 25, 2006
12
AU
There is a great offer on the purchase of Delphi and C++Builder at the moment and I was curious to know if my code on the old ver. C++Builder 4 and 6 would be usable in the latest version of C++Builder?

Has anyone tried the conversion?

Any info is greatly appreciated.
 
The biggest change is going to be that the default string type in the older versions is AnsiString, but is UnicodeString in the new one. took me about 5-10 minutes to convert some of my older projects, but they were comparatively small too. It is going to depend on if you have custom components that used AnsiString, and if you used AnsiString/Char * conversions a lot.
 
I used AnsiString alot. And sometimes just String.

Find and Replace would handle that change easily.

I used a lot of Char *str1[120] type code throught some of my projects.

Thanks for the info.
 
I agree with Prattarat, the change from AnsiString to UnicodeString is the biggest change/headache unless you've used third party libraries. You will also have to find a replacement or upgrade for those.


James P. Cottingham
[sup]I'm number 1,229!
I'm number 1,229![/sup]
 
Third party libraries.

Used the Preview Print that came with C++B - Quick Report, But have dropped it as it was a problem moving into XP.
Otherwise just straight C++B. and a few APIs for Empty and Copy Folders.

Now just use Text Output which can be loaded from WordPad or Notepad and printed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top