- 注册时间
- 2011-3-6
- 最后登录
- 1970-1-1
该用户从未签到
|
BSTR 类型转换成 const char * 型
CString str1(bstr1); //先将 bstr类型转换成 csring
char host_name[100]={0};
wcstombs(host_name, str1, str1.GetLength());
const char * p = host_name;
CString 转换成 BSTR 类型
*bstr2=str.AllocSysString(); |
|