![]() #define STR_CONV_BUF_SIZE 12000 // the largest string you may have to convert. Instead define the following two functions: UnicodeString.c_str() returns wchar_t* and AnsiString.c_str() still returns char*.ĭon’t bother replacing all occurrences of String with AnsiString as suggested elsewhere. If you are using the type String in your code it now maps to UnicodeString and no longer to AnsiString. ![]() It is more difficult if you are passing a variable as an argument. If the argument is a string constant all you have to do is place the letter L in front of it. VCL object properties that returned AnsiString now return UnicodeString (for example Label->Caption).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |