C++ Format string类型显示乱码处理

来源:互联网 发布:咏春拳 知乎 编辑:程序博客网 时间:2024/06/11 00:47

s.Format(L"%S",sIp.c_str());
CEditIp.SetWindowText(s);


用%s会显示乱码, 换成%S即可