Hexa help!

This is a discussion on Hexa help! within the C++ Programming forums, part of the General Programming Boards category; Hi, If sending a 2 byte hexa is 0xXX, then sending a 4 byte hexa is 0xXXXX?? correct? I am ...

  1. #1
    Registered User
    Join Date
    Jul 2002
    Posts
    29

    Hexa help!

    Hi,


    If sending a 2 byte hexa is 0xXX,
    then sending a 4 byte hexa is 0xXXXX??
    correct?
    I am using borland C++ builder 6....



    Thanks
    mind your own mind...

    PsychoMantis,

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    194
    Um OxXX would only be 1 byte
    0xXXXX would be 2 bytes

    Each digit in hex(0-9,A-F) represents 4 bits. Put two digits together to get 8 bits which is a byte

  3. #3
    Still A Registered User DISGUISED's Avatar
    Join Date
    Aug 2001
    Posts
    499
    And for example .....

    0x3F7A = 0011 1111 0111 1010

  4. #4
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    hmm...I wonder how many bits are in a binary digit, lol

  5. #5
    Registered User
    Join Date
    Jul 2002
    Posts
    29
    Sorry its:

    0xXX 1 byte
    0xXXXX 2 byte


    When i send 0x010E (2 byte) the program only send as 0x0E(1 byte)
    How am i goin to send the 2 bytes together?
    mind your own mind...

    PsychoMantis,

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Conversion of char for hexa!?!?
    By darkducke in forum C Programming
    Replies: 2
    Last Post: 05-29-2008, 09:40 PM
  2. how to convert decimal to hexa decimal in C/
    By kalamram in forum C Programming
    Replies: 4
    Last Post: 09-03-2007, 07:39 AM
  3. Char Hexa Conversion for socket raw!HELP ME PLEASE!
    By gls2ro in forum C Programming
    Replies: 1
    Last Post: 05-04-2004, 06:41 AM
  4. Help with Hexa conversion
    By schism in forum C++ Programming
    Replies: 6
    Last Post: 12-15-2002, 01:01 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21