|
|
|
|
|
by revasm
4536 days ago
|
|
That was an unfortunate example. The widen() in this case is absolutely unnecessary. The author even recommends using the L prefix for UTF-16 string literals inside of Windows API calls (but not on other platforms, where wchar_t isn't UTF-16): > Do not use _T("") or L"" literals in any place other than parameters to APIs accepting UTF-16. Except for that, you do make a good point. It's probably better to store some strings in memory according to the platform requirements, if the program can be shown to exhibit delays caused by string conversions. |
|