| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 523 人关注过本帖
标题:大哥进来帮小弟改错啊,谢谢
只看楼主 加入收藏
dreamsky2
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2006-6-2
收藏
 问题点数:0 回复次数:2 
大哥进来帮小弟改错啊,谢谢

程序出现以下错误:
E:\C++\myCode\Chat\ChatDlg.cpp(126) : error C2514: 'CChatSocket' : class has no constructors
e:\c++\mycode\chat\chatdlg.h(3) : see declaration of 'CChatSocket'
E:\C++\myCode\Chat\ChatDlg.cpp(127) : error C2027: use of undefined type 'CChatSocket'
e:\c++\mycode\chat\chatdlg.h(3) : see declaration of 'CChatSocket'
E:\C++\myCode\Chat\ChatDlg.cpp(127) : error C2227: left of '->Create' must point to class/struct/union
E:\C++\myCode\Chat\ChatDlg.cpp(129) : warning C4150: deletion of pointer to incomplete type 'CChatSocket'; no destructor called
e:\c++\mycode\chat\chatdlg.h(3) : see declaration of 'CChatSocket'
E:\C++\myCode\Chat\ChatDlg.cpp(135) : error C2027: use of undefined type 'CChatSocket'
e:\c++\mycode\chat\chatdlg.h(3) : see declaration of 'CChatSocket'
E:\C++\myCode\Chat\ChatDlg.cpp(135) : error C2227: left of '->Connect' must point to class/struct/union
E:\C++\myCode\Chat\ChatDlg.cpp(135) : fatal error C1903: unable to recover from previous error(s); stopping compilation

每一条说没有构造器,出错处: m_pSocket=new CChatSocket(this);
但检查后发现构造函数是有的啊:CChatSocket::CChatSocket(CChatDlg * pDlg)
{
m_pDlg=pDlg;
}
各位大哥帮忙啊!!谢谢

搜索更多相关主题的帖子: cpp ChatDlg myCode 
2006-06-27 10:32
dreamsky2
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2006-6-2
收藏
得分:0 
谁能帮忙看看啊
2006-06-27 10:41
dreamsky2
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2006-6-2
收藏
得分:0 
已解决!
2006-06-27 11:01
快速回复:大哥进来帮小弟改错啊,谢谢
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.012094 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved