This topic is now archived and is closed to further replies.


winsock, win32 dialog closes after connected

Recommended Posts

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.

Share this post

Link to post
Share on other sites