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 Load txtData(intMax) End If End Sub 这是MSDN的例子原代码,但我在编译时总是报错:过程声明与同名事件或过程的描述不匹配。 有谁知道是怎么回事啊?
C:vb/VB
(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
Load txtData(intMax)
End If
End Sub
这是MSDN的例子原代码,但我在编译时总是报错:过程声明与同名事件或过程的描述不匹配。
有谁知道是怎么回事啊?
你在窗体上放一个 WinSock 控件,改名为 sckServer,并设置其 Index = 0.