Results 1 to 4 of 4

Thread: left shift

  1. #1
    Guest

    Question

    i search for the syntax of a left shift, i know the right shift is: \ &H but can't find how to make a left one.
    Also i don't understand why a right **** of 16 is: \&H10000
    why it isn't: \ &H10 ?
    By the way, i've tried to replace the setwindowtext by a sendmessage(hWnd, WM_SETTEXT, 0, "text to write"), but it doesn't work where a setwindowtext work, where is the error?
    thx for any help or advices you could provide

  2. #2
    New Member
    Join Date
    Feb 2000
    Posts
    8
    i don't recall what the syntax is right now, search for it in the msdn data base thindy that comes with visual studio. it's in there. as for the next part, &H10000 means hex 10000, which in binary is 1 followed by fifeteen zeros!

  3. #3
    Guest
    So, if i understand well, a shift of 4 would be &H10 and a shift of 5 &H20 right?

  4. #4
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516

    Hex

    Hex code is base 16. The 'numbers' go like this:
    0 = 0
    1 = 1
    2 = 2
    3 = 3
    4 = 4
    5 = 5
    6 = 6
    7 = 7
    8 = 8
    9 = 9
    A = 10
    B = 11
    D = 12
    D = 13
    E = 14
    F = 15
    10 = 16
    11 = 17
    12 = 18
    13 = 19
    14 = 20
    15 = 21
    16 = 22
    17 = 23
    18 = 24
    19 = 25
    1A = 26
    1B = 27
    1C = 28
    1D = 29
    1E = 30
    1F = 31
    20 = 32

    And so on.

    So &H10 + 1 = &H11

    I think.

    Bye.
    Courgettes.

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