Results 1 to 2 of 2

Thread: Sending hex to server with Winsock control

  1. #1
    Guest

    Question

    Hey

    I need to send the hex at the botttom to a server (without the - signs).

    My problem is that VB keeps stripping out the 00 hex no matter what I do. The only way I can figure out is to send chr(&H0) to the server, but that sends 20-30-20 instead of 00. Any help would be appreciated! Thanks.

    44-27-48-4A-4A-32-20-54-59-50-45-20-53-45-52-56-45-52-4E-41-4D-45-31-32-33-00-00-00-00-00-00-00-00-00-00-01-20-03-32-31-20-20-20-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00

    (This packet is similar to what a game list server my program talks with needs to receive in order to properly register it in its database.)

    [Edited by pennywise on 04-16-2000 at 02:22 PM]

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    Make a byte array with one byte for each command and use this cByte(&HFF) to confert the Hex into the Bytes, I havn't used Winsoc so I dont know how to send it but varptr will return a pointer to it's one parameter, This might help, I don't know.

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