making a chat application

hi,
im trying to make a chat application in winform

right now it can send messages
but the problem is when receiving a msg from a another client or server
my gui freeze

i put the code in a timer
something like this
1
2
3
4
5
6
7
Timer1{
char* msg = new char[MAX_PATH];
if(recv(Connect,msg,MAX_PATH,0))
{
   // do something				 
}
}


i am very new to this..so can u help me out?

thanks in advance
I am new too. I might be able to help if I know how you made it go from computer to computer because I don't know how to network c++ with other computers.
Topic archived. No new replies allowed.