There are two ways to solve it:
1, using the conversion function
char *chr=new char[wo。 GetLength()]
WideCharToMultiByte(CP_ACP,0,wo。 GetBuffer(),- 1,chr,wo。 GetLength(),NULL,NULL);
string str = chr
2. It is recommended that you use WSstring, which is a wide character version of string. Its member function is almost exactly the same as String, so you will definitely use it.
wstring str=wo。 GetLength();