t_str() has been deprecated





  • New VCL based projects will now default to TCHAR maps to wchar_t.

    Das hätte ich eigentlich schon beim 2010er erwartet.

    In these cases, you will be forced to create an appropiate char * from the System::UnicodeSting for functions that can accept UTF8 strings and will only be used in versions of the C++Builder since 2009:

    <vcl.expr>.c_str() ---[becomes]–> System::UTF8String(<vcl.expr>).c_str()

    for functions that require ASCII[1] or need to be built with both new and old versions of C++Builder:

    <vcl.expr>.c_str() ---[becomes]–> System::AnsiString(<vcl.expr>).c_str()

    So habe ich es schon seit dem 2009er gemacht. Dieses t_str(), das sie im ersten Update vom 2009er erstmal reparieren mussten, war mir schon immer suspekt.

    Trotzdem ist dieses Posting wichtig, ich hätte mir so etwas schon früher gewünscht. Kann man das in die FAQ setzen ?


Anmelden zum Antworten