neil147
Aug 12th, 2009, 04:33 AM
Hi guys
I'm pretty new to VB programming and am in the middle of developing an application to receive data over a TCP connection.
To test the application, I am connection to the port using Telnet from the Windows command prompt.
If I copy some data onto the clipboard (for example "ABCDEFG" and then paste it into the telnet session, the only data that gets received into the application and subsequently displayed in the window is the letter "A" (I.e the first character in the string that was sent.
What am I doing wrong? How do I get it to accept the whole string ?
Here is the code....
=========================================================
Private Sub Listener_DataArrival(ByVal bytesTotal As Long)
Dim MBMinitiator As String
Listener.GetData MBMinitiator
Listener.Close
'
MBMContent = MBMinitiator
Label1.Caption = MBMContent
'
Listener.Listen
End Sub
=========================================================
Thanks in advance..
I'm pretty new to VB programming and am in the middle of developing an application to receive data over a TCP connection.
To test the application, I am connection to the port using Telnet from the Windows command prompt.
If I copy some data onto the clipboard (for example "ABCDEFG" and then paste it into the telnet session, the only data that gets received into the application and subsequently displayed in the window is the letter "A" (I.e the first character in the string that was sent.
What am I doing wrong? How do I get it to accept the whole string ?
Here is the code....
=========================================================
Private Sub Listener_DataArrival(ByVal bytesTotal As Long)
Dim MBMinitiator As String
Listener.GetData MBMinitiator
Listener.Close
'
MBMContent = MBMinitiator
Label1.Caption = MBMContent
'
Listener.Listen
End Sub
=========================================================
Thanks in advance..