I use std :: wstring as a Unicode style string. Now I want to get the wstring byte size. If I use the size () method for wstring, I just get the total number of characters in my wstring. But the byte should be size () * 2. Is there an official way to get this byte size? I do not want to use size () * 2 in my program .....
I want to use in RegSetValueExW as the last parameter.
c ++ string winapi size wstring
Hooch
source share