Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Setting hi and low-order words

Setting hi and low-order words

Scheduled Pinned Locked Moved C / C++ / MFC
question
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alex Orovetskiy
    wrote on last edited by
    #1

    There's HIWORD and LOWORD macros for retreiving but what are for setting ? -------------------------------- Human stupidity is infinite.

    N J T 3 Replies Last reply
    0
    • A Alex Orovetskiy

      There's HIWORD and LOWORD macros for retreiving but what are for setting ? -------------------------------- Human stupidity is infinite.

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      MAKELONG

      A 1 Reply Last reply
      0
      • N Nish Nishant

        MAKELONG

        A Offline
        A Offline
        Alex Orovetskiy
        wrote on last edited by
        #3

        Umm...right. I knew it was something that obvious. Need to stop trying to do something at 1am. -------------------------------- Human stupidity is infinite.

        1 Reply Last reply
        0
        • A Alex Orovetskiy

          There's HIWORD and LOWORD macros for retreiving but what are for setting ? -------------------------------- Human stupidity is infinite.

          J Offline
          J Offline
          Jorgen Sigvardsson
          wrote on last edited by
          #4

          There's always (hi << 16) | lo :)
          -- Pictures[^] from my Japan trip.

          A 1 Reply Last reply
          0
          • J Jorgen Sigvardsson

            There's always (hi << 16) | lo :)
            -- Pictures[^] from my Japan trip.

            A Offline
            A Offline
            Alex Orovetskiy
            wrote on last edited by
            #5

            Thanks but no thanks. Bitwise operators is one of not so many topics I've missed during my programming studies and can't catch until now :( -------------------------------- Human stupidity is infinite.

            1 Reply Last reply
            0
            • A Alex Orovetskiy

              There's HIWORD and LOWORD macros for retreiving but what are for setting ? -------------------------------- Human stupidity is infinite.

              T Offline
              T Offline
              ThatsAlok
              wrote on last edited by
              #6

              Alex Orovetskiy wrote:

              There's HIWORD and LOWORD macros for retreiving but what are for setting ?

              One More MAKEWPARAM

              "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

              cheers, Alok Gupta VC Forum Q&A :- I/ IV

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups