CString 对象的 AllocSysString 方法将 CString 转化成 BSTR

作者: 吴杰 分类: 编程 发布时间: 2011-09-18 20:09

 CString 对象的 AllocSysString 方法将 CString 转化成 BSTR的方法:

CString s; 
s = "i love you";
BSTR b = s.AllocSysString();