为什么接收到的点横坐标没变???
用winsock控件发送坐标点到接收端发送端部分代码:
Private Sub Timer1_Timer(Index As Integer)
····
For i = 0 To n
Picture1.PSet (px(i), py(i)), vbRed '两点画线
Winsock1.SendData "a" & px(i) & "b" & py(i) & "c"
Next i
End sub
接收端代码:
Private Sub Timer1_Timer(Index As Integer)
····
Winsock1.GetData s
s1 = Mid(s, InStr(s, "a") + 1, InStr(s, "b") - InStr(s, "a") - 1)
s2 = Mid(s, InStr(s, "b") + 1, InStr(s, "c") - InStr(s, "b") - 1)
Picture1(0).PSet (s1, s2), vbRed
····
End sub
图1是发送端的,图二是接收端的,为什么接收端的点都在同一横坐标上???
[ 本帖最后由 小篮子 于 2013-3-6 11:20 编辑 ]