error : 'AddString' : is not a member of 'CWnd'
来源:互联网 发布:mac上玩qq游戏 编辑:程序博客网 时间:2024/06/03 15:16
今天在写mfc程序,在combox方面出现了上面这个问题。
后面查了下是没有进行强制转换。
开始我是这么写的:
((CComboBox *)GetDlgItem(IDC_COMPARESS_PERCENTAGE)->AddString("80"));
就报错。 因为这个大括号打错地方了。
后面改为了:
((CComboBox *)GetDlgItem(IDC_COMPARESS_PERCENTAGE))->AddString("80");
就成功了。
- error : 'AddString' : is not a member of 'CWnd'
- error C2039: 'foreground_regions' : is not a member of 'CvGaussBGModel'
- Blitz++ error: 'labs' is not a member of 'std'
- C2039 Error: WriteHuge : is not a member of CFile
- error C2039: 'SetPoint' : is not a member of 'CPoint'
- error C2039: 'addCameraManipulator' : is not a member of 'osgGA
- error C2039: 'memchr' : is not a member of '`global namespace''
- Code blocks error: 'thread' is not a member of 'std'|
- error C2039: 'serial_port' : is not a member of 'boost::asio'
- error C2039: 'wstring' : is not a member of 'std'(转)
- error C2039: ‘ReadHuge’ : is not a member of ‘CFile
- error C2039: 'm_dwVersion' : is not a member of 'AFX_MODULE_STATE'
- error C2039: 'bitset' : is not a member of 'std'
- error C2039: 'GetCurSel' : is not a member of 'CString'
- error C2039: \'NotifyWinEvent\' : is not a member of \'`global namespace\'\'
- error C2039: 'min' : is not a member of 'std'
- error C2039: 'Release' : is not a member of 'IFile'
- : error: ‘cout’ is not a member of ‘std’
- 关于静态窗体定时器的线程运行
- C++及Windows异常处理(try,catch; __try,__finally; __try, __except)——一道笔试题引起的探究
- 我来报道的,
- Linux内核启动分析之初始化临时页表
- Android手机分辨率基础知识(DPI,DIP计算)
- error : 'AddString' : is not a member of 'CWnd'
- DBCC CHECKDB用法 手工修复数据库
- JTabbedPane的扩展,可关闭,可预览(学习了)
- php preg_match正则函数的使用注意
- Windows批量添加防火墙例外端口的批处理代码
- Google Practice Round_C: Moist
- 自定义Android日期时间选择控件DateTimePickerDialog
- fatal error LNK1201
- 【Leetcode】Combination Sum II