0
我不能傍回PING到IRC,發回了「你必須先註冊」的錯誤,這裏是我使用的代碼:VB6/IRC PING和PONG問題
Private Sub wsConnect_DataArrival(ByVal bytesTotal As Long)
Dim strData As String
wsConnect.GetData strData
If InStr(strData, "PING") <> 0 Then
MsgBox ("Success!") 'Check it's receiving it.
wsConnect.SendData Replace(strData, "PING", "PONG") & vbCrLf
End If
Me.txtDataIn.Text = Me.txtDataIn.Text & strData
End Sub
任何幫助?