|
-
Sep 11th, 2000, 08:10 PM
#1
Thread Starter
Lively Member
i keep getting an error 40020 invalid operation at current state. its a chat program i'm making but i'm just need to get it to connect first. Please help me out asap!!!!
heres the code
client:
Option Explicit
Private Sub cmdConnect_Click()
On Error Resume Next
sock.Connect txtIP, txtPort
End Sub
Private Sub cmdDisconnect_Click()
sock.Close
End Sub
Private Sub sock_Connect()
MsgBox "hi", vbOKOnly, "hi"
End Sub
server:
Option Explicit
Private Sub Form_Load()
If sock.State <> sckClosed Then
sock.Close
End If
sock.Listen
End Sub
Private Sub sock_Connect()
MsgBox "hi", vbOKOnly, "hi"
End Sub
Private Sub sock_ConnectionRequest(ByVal requestID As Long)
sock.Accept requestID
End Sub
-
Sep 11th, 2000, 08:26 PM
#2
Frenzied Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|