cyclonebri
11-19-2001, 02:46 PM
I am trying to set up a multiple client server with a winsock control array...I set up the connection request like this:
Private Sub sckServer_ConnectionRequest(index As Integer, ByVal requestID As Long)
If index = 0 Then
intMax = intMax + 1
Load sckServer(intMax)
sckServer(intMax).LocalPort = 0
sckServer(intMax).Accept requestID
End If
End Sub
And then the problem hits in the sckServer_DataArrival event,
when it loads, it says :
Procedure declaration does not match description of event or procedure having the same name.
here is the code I have in the dataArrival method:
Private Sub sckServer_DataArrival(index As Integer, bytesTotal As Long)
Dim strIN As String
On Error Resume Next
sckServer(index).GetData strIN
End Sub
Can anyone tell me what I'm doing wrong?
Thanks,
Brian
Private Sub sckServer_ConnectionRequest(index As Integer, ByVal requestID As Long)
If index = 0 Then
intMax = intMax + 1
Load sckServer(intMax)
sckServer(intMax).LocalPort = 0
sckServer(intMax).Accept requestID
End If
End Sub
And then the problem hits in the sckServer_DataArrival event,
when it loads, it says :
Procedure declaration does not match description of event or procedure having the same name.
here is the code I have in the dataArrival method:
Private Sub sckServer_DataArrival(index As Integer, bytesTotal As Long)
Dim strIN As String
On Error Resume Next
sckServer(index).GetData strIN
End Sub
Can anyone tell me what I'm doing wrong?
Thanks,
Brian