CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
山寨机中的战斗机! 程序优化工程师到底对IT界有没有贡献
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  VC/MFC >  基础类

GetLastError()的返回值问题

楼主sundy()2000-11-21 11:35:00 在 VC/MFC / 基础类 提问

用GetLastError()   返回10054是什么错误?  
  我用   Error   Lookup   是怎么查都查不到!  
  谢谢~ 问题点数:50、回复次数:5Top

1 楼edyang(化石)回复于 2000-11-21 11:44:00 得分 20

不会呀?我的   Error   Lookup   显示:  
  An   existing   connection   was   forcibly   closed   by   the   remote   host.   Top

2 楼sundy()回复于 2000-11-21 11:50:00 得分 0

谢谢,   看来我要重装VC了~  
  :-(Top

3 楼Ray_czh(打字狂人)回复于 2000-11-21 12:13:00 得分 10

在MSDN里面有  
  WSAECONNRESET    
  (10054)    
  Connection   reset   by   peer.    
  A   existing   connection   was   forcibly   closed   by   the   remote   host.   This   normally   results   if   the   peer   application   on   the   remote   host   is   suddenly   stopped,   the   host   is   rebooted,   or   the   remote   host   used   a   "hard   close"   (see   setsockopt   for   more   information   on   the   SO_LINGER   option   on   the   remote   socket.)   This   error   may   also   result   if   a   connection   was   broken   due   to   "keep-alive"   activity   detecting   a   failure   while   one   or   more   operations   are   in   progress.   Operations   that   were   in   progress   fail   with   WSAENETRESET.   Subsequent   operations   fail   with   WSAECONNRESET.    
  Top

4 楼kevincheng(憨鱼头)回复于 2000-11-21 12:46:00 得分 10

(10054)  
  存在的连接被远程主机强制关闭。通常原因是远程主机上对等方应用程序突然停止运行,或远程主机重新启动,或远程主机在远程主套接字上使用上”强制”关闭。Top

5 楼vcmfc(【痛苦的虫虫】)回复于 2000-11-21 19:05:00 得分 10

可用::FormatMessage()取得错误消息呀!Top

相关问题

  • RasDial函数的返回值和GetLastError函数的返回值。
  • copyfile()时,GetLastError()de 返回值是32?这是什么错误
  • CAsyncSocket::GetLastError()的返回值,都代表什么?
  • GetLastError()返回12018,这是什么错误
  • GetLastError()返回12163;12163是什么错误?
  • 那位知道GETLASTERROR的返回值为10093是什么意思?我是在CSOCKER.CREATE时出错的。
  • 在socket 中,send()后getlasterror()返回的值为10038,谁能告诉是什么错误吗?
  • 条件?返回值1:返回值2????
  • showModalDialog的返回值
  • 函数返回值???

关键词

  • 远程
  • 主机
  • 远程主机
  • host
  • operations
  • connection
  • close
  • error

得分解答快速导航

  • 帖主:sundy
  • edyang
  • Ray_czh
  • kevincheng
  • vcmfc

相关链接

  • Visual C++类图书
  • Visual C++类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo