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);
阅读(2182) | 评论(0) | 转发(0) |