'SetWindowTextW' : is not a member of 'ATL::CStrin
时间:2010-03-12 来源:lppchina
error C2039: 'SetWindowTextW' : is not a member of 'ATL::CStringT <BaseType,StringTraits>'
对应错误行数:m_Status.SetWindowText(_T("AAAAAAAA"));
错误原因:
m_Status 是Cstring类型,指向的是Static控件,没有SetWindowTextW方法。
修改方法:
把m_Status类型改成CStatic m_Status;
void CThroughPutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//添加此行
DDX_Control(pDX, IDC_STATIC_ST, m_Status);
}
相关阅读 更多 +