Hello guys, I am using a simple chat program using VB6, in the dataarrival i have a problem. Actually is like bellow:
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim dat As String
Winsock1.GetData dat, vbString
Than I use the dat information and so on...
The problem is that I changed the client operation, and now the code is not a chat(words), it is like a binary code 00001111 or 10101010. The problem is that in the dataarrival the server can not understand this binary code sent by the client....
Please what is wrong, what can you suggest ? is it possible to check bit by bit of the BYTE sent? example 00001111 , identify the "1" and "0".... thanks a lot
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim dat As String
Winsock1.GetData dat, vbString
Than I use the dat information and so on...
The problem is that I changed the client operation, and now the code is not a chat(words), it is like a binary code 00001111 or 10101010. The problem is that in the dataarrival the server can not understand this binary code sent by the client....
Please what is wrong, what can you suggest ? is it possible to check bit by bit of the BYTE sent? example 00001111 , identify the "1" and "0".... thanks a lot