分类: C/C++
2010-03-12 11:21:17
error C2039: 'SetWindowTextW' : is not a member of 'ATL::CStringT
对应错误行数: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);
}