VC ++ WIn32中的窗口未响应 [英] Window not Responding in VC++ WIn32

查看:62
本文介绍了VC ++ WIn32中的窗口未响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好


我已经开发了一个服务器程序,可以接受多个客户端.我已经使用了无限的while循环来接受来自client的连接.但是,当我启动程序时,窗口没有响应.我的代码是

Hello


I have developed a Server Program which accepts multiple clients. I have used infinite while loop for accepting connections from client . But when i start the program the window is not responding. My code is

while(true)
{
    csock = (int*)malloc(sizeof(int));
    if((*csock = accept( hsock, (SOCKADDR*)&sadr, &addr_size))!= INVALID_SOCKET )
    {			
	CreateThread(0,0,&SocketHandler, (void*)csock ,0,0);
    }
}



我只是VC ++的初学者.请帮我解决这个问题.



I am just a beginner in VC++ . Please help me out to solve this.

推荐答案

Express Editior显示哪些错误?
What errors the Express Editior show?


这篇关于VC ++ WIn32中的窗口未响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆