Voilà, j'ai un gros problème :
avec mon prog, je ne peux pas envoyer/recevoir de données quand j'utilise 2 pc différents, alors que quand j'utilise un seul pc ca marche
---------------------------
Voici mon programme :
---------------------------
Private Sub Command1_Click()
sckClient(Index).SendData Text2.Text
End Sub
Private Sub Form_Load()
sckListen.LocalPort = 667
sckClient(Index).RemotePort = 667
sckListen.Listen
sckClient(nb).Connect "127.0.0.1"
End Sub
Private Sub sckClient_Close(Index As Integer)
Unload sckClient(Index)
If sckClient.Count = 0 Then nb = 0
End Sub
Private Sub sckClient_DataArrival(Index As Integer, ByVal bytesTotal As Long)
sckClient(nb).GetData Data$, vbString
Text1.Text = Data$
End Sub
Private Sub sckListen_ConnectionRequest(ByVal requestID As Long)
nb = nb + 1
conn.Caption = Str$(nb)
Load sckClient(nb)
sckClient(nb).Accept requestID
End Sub
----------------------------------
et dans un module, j'ai mis
----------------------------------
Global nb As Integer
--------------------------------------------------------
aidez-moi par pitié !
damon.x