WTL::CListViewCtrl::GetItemText(int nItem, int nSubItem, _CSTRING_NS::CString& strText)报错,抓狂中
WTL::CListViewCtrl::GetItemText有3个重载
BOOL GetItemText(int nItem, int nSubItem, BSTR& bstrText) const
int GetItemText(int nItem, int nSubItem, _CSTRING_NS::CString& strText) const
int GetItemText(int nItem, int nSubItem, LPTSTR lpszText, int nLen) const
我定义了一个CString变量,按理应该调用第2个,结果编译器报告
error C2664: “BOOL WTL::CListViewCtrlT<TBase>::GetItemText(int,int,BSTR & ) const” : 不能将参数 3 从“ATL::CString”转换为“BSTR & ”
with
[
TBase=ATL::CWindow
]
抓狂中……