做了一个测试传统控件的MFC,编译的时候报错:
error C2039: 'SetWindowTextA' : is not a member of 'CString'
d:\program files\microsoft visual studio\vc98\mfc\include\afx.h(368) : see declaration of 'CString'
报错的地方有2处:
m_Indicator.SetWindowText("0");
.......
m_Indicator.SetWindowText(str); //更新静态正文
实在搞不懂SetWindowText().我在CString类中声明一下SetWindowTest()函数,它也报错.请高手指点一下,谢谢!
有需要源代码的高手可以给我发邮件
error C2039: 'SetWindowTextA' : is not a member of 'CString'
d:\program files\microsoft visual studio\vc98\mfc\include\afx.h(368) : see declaration of 'CString'
报错的地方有2处:
m_Indicator.SetWindowText("0");
.......
m_Indicator.SetWindowText(str); //更新静态正文
实在搞不懂SetWindowText().我在CString类中声明一下SetWindowTest()函数,它也报错.请高手指点一下,谢谢!
有需要源代码的高手可以给我发邮件
需要把str转换成文本
我是这样做的 没有出错啊