qq_40728832 2017-10-21 06:29 采纳率: 0%
浏览 846

关于m_ptStart未声名问题,具体代码如下

void CWrite2View::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
m_ptStart=point;
m_ptEnd=point;
SetCapture();
m_isDragging=true;
CListView::OnLButtonDown(nFlags, point);
}
错误信息:
C:\Users\john\Desktop\VChh\MyProjects\Write2\Write2View.cpp(111) : error C2065: 'm_ptStart' : undeclared identifier
C:\Users\john\Desktop\VChh\MyProjects\Write2\Write2View.cpp(111) : error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'class CPoint' (or there is no acceptable conversion)
C:\Users\john\Desktop\VChh\MyProjects\Write2\Write2View.cpp(112) : error C2065: 'm_ptEnd' : undeclared identifier
C:\Users\john\Desktop\VChh\MyProjects\Write2\Write2View.cpp(112) : error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'class CPoint' (or there is no acceptable conversion)
C:\Users\john\Desktop\VChh\MyProjects\Write2\Write2View.cpp(114) : error C2065: 'm_isDragging' : undeclared identifier
C:\Users\john\Desktop\VChh\MyProjects\Write2\Write2View.cpp(131) : error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'class CPoint' (or there is no acceptable conversion)
执行 cl.exe 时出错.

  • 写回答

1条回答 默认 最新

  • threenewbee 2017-10-21 12:18
    关注

    问你啊,这个变量定义了么,在哪里

    评论

报告相同问题?

悬赏问题

  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突