Error 201 error C2664:'DWORD' to 'LPCTSTR'
时间:2010-03-12 来源:lppchina
Error 201 error C2664: cannot convert parameter 1 from 'DWORD' to 'LPCTSTR'
DWORD dwTotalSize = 123456;
m_Filesize.SetWindowText(dwTotalSize);
报错Error 201 error C2664: cannot convert parameter 1 from 'DWORD' to 'LPCTSTR'
错误原因:
SetWindowText的参数不能是Dword型的,必须转换。
修改方法:
DWORD dwTotalSize = 123456;
Cstring strDigital;
strDigital.Format(_T("%d"),dwDigital);
m_Filesize.SetWindowText(strDigital);
相关阅读 更多 +