VC运行时出现如下错误,如何解决?

archangel_iroi 2003-08-29 04:59:16
Compiling...
Terminal.cpp
TerminalDoc.cpp
TerminalView.cpp
SetupDlg.cpp
G:\Vcstudy\Test\Terminal\SetupDlg.cpp(38) : error C2664: 'DDX_CBIndex' : cannot convert parameter 3 from 'class CString' to 'int &'
A reference that is not to 'const' cannot be bound to a non-lvalue
G:\Vcstudy\Test\Terminal\SetupDlg.cpp(43) : error C2664: 'DDX_CBIndex' : cannot convert parameter 3 from 'class CString' to 'int &'
A reference that is not to 'const' cannot be bound to a non-lvalue
G:\Vcstudy\Test\Terminal\SetupDlg.cpp(45) : error C2664: 'DDX_CBIndex' : cannot convert parameter 3 from 'class CString' to 'int &'
A reference that is not to 'const' cannot be bound to a non-lvalue
Generating Code...
Error executing cl.exe.

Terminal.exe - 3 error(s), 0 warning(s)
...全文
48 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
archangel_iroi 2003-08-29
  • 打赏
  • 举报
回复
up
tonybaobao 2003-08-29
  • 打赏
  • 举报
回复
不是吧?他是说:无法将CString类型转换为int型引用
archangel_iroi 2003-08-29
  • 打赏
  • 举报
回复
怎么解决呢?
ioiogo 2003-08-29
  • 打赏
  • 举报
回复
你手工删去了关联的变量!!!!
archangel_iroi 2003-08-29
  • 打赏
  • 举报
回复
大家给看看呀

15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧