Home > Software engineering >  Using WinSock received data is greater than 80 to 3 f
Using WinSock received data is greater than 80 to 3 f

Time:09-17

In Excel using winsock receive client sends data, other data is normal, there is only one yourself, as long as more than 80, will become a 3 f, don't know what the reason, please god help me this small white,
WsTCP. GetData sRec
Sheet1. Range (" B3 "). The Value=https://bbs.csdn.net/topics/Han2Hex (sRec)

CodePudding user response:

What is your Han2Hex a logical luo
More than 80 out of the question, basically because 80 is actually a binary, 1000, 0000, the beginning of the highest level is 1, if the bit as digital processing or as the sign bit processing have differences

CodePudding user response:

The original poster is in accordance with the "text" way to deal with the byte data?

CodePudding user response:

WsTCP. GetData back with variables of type Byte array to receive, if use the string variable, more than 7 f when would be a problem

CodePudding user response:

3 f is'? 'the ASCII code, when you use the String, which can't identify characters were system use'? 'replacement,

If there is a printable characters of bytes, with a Byte array processing,
  •  Tags:  
  • VBA
  • Related