i have write a visual basic
1.server
Private Sub Command1_Click()
tcpServer.LocalPort = 1001
tcpServer.Listen
End Sub
*tcpServer is a winsock
2.client
Private Sub Command1_Click()
tcpClient.Connect
End Sub
Private Sub tcpServer_ConnectionRequest_(ByVal requestID As Long)

' close the connection before accepting the new
' connection.
If tcpServer.State <> sckClosed Then tcpServer.Close
' Accept the request with the requestID
' parameter.tcpServer.Accept requestID
End Sub
*tcpClient is a winsock too.
我想用遠程控制的方法控制用lan card或宿舍LAN 駁的另一台電腦,寫聊天程式,send 指示,遠程控制、send client 的顯示到server等,how can i do?
p.s.請各高手盡量用淺易一些的文字,因我初學,很多東西不懂.Thanks

arrow
arrow
    全站熱搜

    vbqa 發表在 痞客邦 留言(2) 人氣()