Private Sub Form_Load() MaxIndex = 0 Winsock(0).Listen End Sub
Private Sub Winsock_Close(Index As Integer) Winsock(Index).Close Unload Winsock(Index) End Sub
Private Sub Winsock_ConnectionRequest(Index As Integer, ByVal requestID As Long) If Index = 0 Then MaxIndex = MaxIndex + 1 Load Winsock(MaxIndex) Winsock(MaxIndex).Accept requestID End If End Sub
Private Sub Winsock_DataArrival(Index As Integer, ByVal bytesTotal As Long) Dim strMsg As String Winsock(Index).GetData strMsg MsgBox Index & MaxIndex End Sub
我想把word另存为xml之后,用vb读取这个xml的内容,请问如何实现? dim f as integer dim b() as byte dim s as string dim L as long f=freefile() open "abc.xml" for binary access read as #f ......