winsock, win32 dialog closes after connected
Hi
I have recently started winsock coding, but are experiencing som difficulties. I have pasted a url to the code below. The problem is in the WM_CREATE message where I connect to a server (the server in the code is to an efnet irc server). When the application become connected to the server (and the messagebox pops up) the app closes. when commenting out the connect() line in the code this problem does not occure. Neither does it happen if I try to connect to a address that does not excist. Any feedback on why it is like this?
I am a real newbie when it comes to winsock, but know a bit about win32 programming.
http://www.pastebin.org/index.php?page=show&id=1528&key=u06zxpbvon
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement