摘要: 楼主使用了AFX_MANAGE_STATE(AfxGetStaticModuleState());这种资源切换的语句吧,使用了这个是会出现这个错误的。 阅读全文
posted @ 2013-01-17 21:04 周尚武 阅读(249) 评论(0) 推荐(0) 编辑
摘要: if(nread = read(fd,buf+(count-nleft),nleft) < 0) 与 if((nread = read(fd,buf+(count-nleft),nleft)) < 0) 有什么不同呢 第一句意思为nread = (read(fd,buf+(count-nleft),nleft) < 0),即read的数据大于0时,nread反而为0,导致与程序的本意不符,本... 阅读全文
posted @ 2013-01-17 10:50 周尚武 阅读(121) 评论(0) 推荐(0) 编辑