[求助]CString如何转换成_bstr_t?
CString sqlstr="select a as A,b as B from table where a like '%1'";
_bstr_t vSql=(_bstr_t)sqlstr;
m_Recordset = m_Ado.GetRecordSet(vSql);//(前面已声明)
运行下来以后总报错 kernel32 好像这个错
但是我换成
_bstr_t vSql="select a as A,b as B from table where a like '%1'";
就能运行了
我觉得是我_bstr_t vSql=(_bstr_t)sqlstr;转换的事
哪位大大能告诉我 正确应该怎么转换