看看这段说明:SendData TCP Method DescriptionSends data to peer.Return ValueVoid.Syntaxobject.SendData dataParametersDataData to be sent. For binary data, byte array should be used. Data Type: VARIANT Param: IN Currently, the following variant types are supported.Type C++ VB Type Byte VT_UI1 vbByte Integer VT_I2 vbInteger Long VT_I4 vbLong Single VT_R4 vbSingle Double VT_R8 vbDouble Currency VT_CY vbCurrency Date VT_DATE vbDate Boolean VT_BOOL vbBoolean SCODE VT_ERROR vbError String VT_BSTR vbString Byte Array VT_ARRAY | VT_UI1 vbArray + vbByte CommentsWhen a UNICODE string is passed in, it is converted to an ANSI string before being sent out on the network. The user is notified of sending progress by the SendProgress and SendComplete event.
就是socket
ClientSocket.Socket.SendBuf(s1,2);//发送S1
SendData(@S1[1])是什么代码 呀??
根本就编译不过??
Data Type: VARIANT
Param: IN
Currently, the following variant types are supported.Type C++ VB Type
Byte VT_UI1 vbByte
Integer VT_I2 vbInteger
Long VT_I4 vbLong
Single VT_R4 vbSingle
Double VT_R8 vbDouble
Currency VT_CY vbCurrency
Date VT_DATE vbDate
Boolean VT_BOOL vbBoolean
SCODE VT_ERROR vbError
String VT_BSTR vbString
Byte Array VT_ARRAY | VT_UI1 vbArray + vbByte
CommentsWhen a UNICODE string is passed in, it is converted to an ANSI string before being sent out on the network.
The user is notified of sending progress by the SendProgress and SendComplete event.