RAD Studio 10.4.1 is now available! Learn more. Looking for discounts? Visit our Special Offers page!
C++Code

Quickly Learn How To Migrate Legacy C++ Builder Applications To The Unicode

In this CodeRage session, you can see how you can migrate your legacy C++ Builder code to new and fresh C++ easily with a strategy. What can you get from this session? Here is the overview:

  • Unicode in C/C++, VCL & WinAPI
  • VCL String Classes
  • Converting text to and from Unicode
  • Load and save Unicode characters to file
  • New C/C++ data types for C-style strings
  • “_TCHAR maps to” option
  • tchar.h

As you know, for the string data type, C++ Builder offers several choices. Your code can use C-style characters and strings or C++ string objects or VCL string objects and, each of these has its own set of Unicode variations also, the Windows API provides both ANSI and Unicode variants. 

You may not have to migrate your to Unicode to use C++ Builder?

  • Code that uses the C runtime library, the STL, or the Windows API (for instance) can continue to use ANSI.
  • Convert to Unicode when passing data to or from the VCL

Moving projects from the previous version

Option 1: Open your project files and project groups in C++ Builder. You just let C++ Builder update the project.

There is another option that the author of this CodeRage session, Al Mannarino, recommends you to not let C++ Builder convert the project to the new version. You need to create a new project and add your source files to it.

Be sure to watch the whole CodeRage session where you can learn more best practices!


Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder. Design. Code. Compile. Deploy. Start Free Trial   Free Delphi Community Edition   Free C++Builder Community Edition   Upgrade Today
About author

Software Developer | B.Tech-CSE at AUT | Delphi/C++ Builder Enthusiast | Microsoft Learn Student Ambassador | Microsoft Azure Certified | Udacity Alumni
Sign up for our daily posts newsletter!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

IN THE ARTICLES