std::string 转换为BSTR 乱码;
这种类型转换就不会乱码~~ SysAllocString(L"12345")
在下新手 小白 不知道哪里出错了,麻烦牛人指点一下
你用的Unicode字符集?
百度上说是L 是Unicode , 我也不知道在哪设置,我用的VS2010~~ ,
你用的Unicode字符集?
std::string a = "111";
CString str = (CA2W)(a.c_str())
BSTR bstrText = str.AllocSysString();