Results 1 to 2 of 2

Thread: What does this mean

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    240

    Smile

    I was experimenting with two different forms ,each one had a winsock and i had one winsock send charcter "255" to the other winsock form..and in the recieveing form the character "A" appeard..it was a character map "A" and it looked a little different..

    so what am asking is...the original post i got the code from

    Dim Sbyte As Integer
    Dim Sto2 As Variant
    Sbyte = "255"
    Sto2 = "255"
    Winsock1.SendData Chr(Sbyte) & Chr(0) & Chr(0) & Chr(0) & Chr(35 + Len(Sto2))


    was used to send this information to a server... but why? what would be the purpose?

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    It translated Chr(Sbyte) into the funny character

    to get it to send 255 then make it

    Code:
    Dim Sbyte As Integer 
    Dim Sto2 As Variant 
    Sbyte = "255" 
    Sto2 = "255" 
    Winsock1.SendData Sbyte & Chr(0) & Chr(0) & Chr(0) & Chr(35 + Len(Sto2))
    try that!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width