shun 0 Posted October 16 Environment: C++Builder 5.0.12.34 OS: Windows 10 Pro I am currently in the process of updating our C++Builder project and need to transition from using ANSIString to UnicodeString, as the string type in the RTL has been mapped to UnicodeString in the latest versions. To ensure a smooth migration, I need to identify all the places where we use: ANSIString or char-based strings. Functions that count characters based on the assumption that 1 character equals 1 byte (such as those working with strlen or similar). Any C-language derived functions (e.g., strcpy, sscanf, fopen) that need to be replaced with their wide-character counterparts (e.g., wcscpy, swscanf, _wfopen). Literal strings that need to be prefixed with L for wide character support. Could you provide guidance or tools to help identify all the necessary changes to make for this transition? Share this post Link to post
Remy Lebeau 1414 Posted October 16 Start with the Unicode section of Embarcadero's Migration and Upgrade Center. Note that AnsiString and all of the other things you mentioned still exist. You just need to be aware of how they interact with Unicode strings if you don't want to completely rewrite your code. 1 Share this post Link to post