how do i send a string to another computer with winsock? I'm making a chat program i reeealy need this code! thanx in advance :D
Printable View
how do i send a string to another computer with winsock? I'm making a chat program i reeealy need this code! thanx in advance :D
http://www.winsockvb.com
and more specifically
http://www.winsockvb.com/tutorials/chat/chat1.html
The problem is when I do:
Winsock.Sendata "Blah"
and receive the data, and try to display it in a text box, it becomes blank. why? :confused:
How are you receiving the data? Are you connecting first? Do you get any errors?
VB Code:
Dim sIncoming as string Winsock1.GetData sIncoming MsgBox sIncoming
Do you have that in the DataArrival event?