L
Lou
I have a VB6 client app that I send data using the winsock control.
Buffer = "<xml>" & _
"<command>GetSomething</command>" & _
"</xml>" & vbCr
Buffer = StrConv(Buffer, vbUnicode)
'Winsock 0 is the gateway socket
If Winsock(0).state = sckConnected Then
Winsock(0).SendData Buffer
End If
WORKS GREAT!
Now in VB .NET I TRY
Private Sub SendData()
data = "<xml>" & _
"<command>GetSomething</command>" & _
"</xml>" & vbCr
Dim test As Encoding = Encoding.Unicode
Dim bytearray As Byte() = test.GetBytes(data)
Dim writer As New IO.StreamWriter(client.GetStream)
writer.Write(bytearray)
writer.Flush()
End Sub
THE SERVER APP DOESN'T RESPOND,
It does show the app is connected but somehow the data is different?
any ideas?
Buffer = "<xml>" & _
"<command>GetSomething</command>" & _
"</xml>" & vbCr
Buffer = StrConv(Buffer, vbUnicode)
'Winsock 0 is the gateway socket
If Winsock(0).state = sckConnected Then
Winsock(0).SendData Buffer
End If
WORKS GREAT!
Now in VB .NET I TRY
Private Sub SendData()
data = "<xml>" & _
"<command>GetSomething</command>" & _
"</xml>" & vbCr
Dim test As Encoding = Encoding.Unicode
Dim bytearray As Byte() = test.GetBytes(data)
Dim writer As New IO.StreamWriter(client.GetStream)
writer.Write(bytearray)
writer.Flush()
End Sub
THE SERVER APP DOESN'T RESPOND,
It does show the app is connected but somehow the data is different?
any ideas?