I am creating a sockets program using Asynchronous sockets. Here's my problem. I do this:
WSAAsyncSelect(sockfd, hwnd, MY_MSG, FD_READ);
and I do:
WORD version=MAKEWORD(1, 1);
And my program freezes and I have to do CTRL + ALT + DEL to end it. What do I do to stop this?