View Single Post
Old Mar 13th, 2007, 5:11 AM   #1
demon101
Hobbyist Programmer
 
demon101's Avatar
 
Join Date: Mar 2006
Location: westboro, ohio
Posts: 159
Rep Power: 0 demon101 is an unknown quantity at this point
Send a message via Yahoo to demon101
problem with my chat client

i am having trouble with my chat client it is coming up and saying unsupported variant type.

so here is my code i have.

Private Sub bntSend_Click()
On Error GoTo t
sock1.SendData txtSend
txtLog = txtLog & "Client : " & txtSend & vbCrLf
Exit Sub
t:
MsgBox "Error : " & Err.Description
sock1_Close
End Sub

that is the code that is causing the problem.

it is the code that sends the text you typed to the other person and that is when the error comes up and when the error comes up it disconnects you from the server.

when you open the client program the ip and port in there is the server i have for the program to run on or you could open the server program and use your computer as the server.

and this is coded in visual basics 6

here is the download too for the server and client
Attached Files
File Type: zip Chat Client.zip (11.9 KB, 21 views)
__________________
Demon101 Production's

Code Forums
demon101 is offline   Reply With Quote