CString转换成string

参考:https://zhidao.baidu.com/question/689727351004945084.html

在如图所示的"Character Set"中,选择"Use Multi-Byte Character Set"

然后再试试:

1
2
CString aa=_T( "hello" );
std::string s=aa.GetBuffer(0);


猜你喜欢

转载自blog.csdn.net/killwho/article/details/73477618