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. MAKEWPARAM ???

MAKEWPARAM ???

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
2 Posts 2 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
    Alek
    wrote on last edited by
    #1

    I need my program to send a message which I define. as below: #define WM_MYMSG WM_USER+100; WPARAM wp; wp = MAKEWPARAM((WORD)0x200, (WORD)0x450); ::PostMessage(NULL, WM_MYMEG, wp, 0); I code a .dll to get this message and then to do something. The problem is, in the program, I get the correct wp value, but when I post the message to the .dll file, it get the wrong value. I use hook function to get this message. It get the message but the WPARAM parameter is wrong. Does anyone could give me some suggestion ? Thanks a lot. :confused:

    L 1 Reply Last reply
    0
    • A Alek

      I need my program to send a message which I define. as below: #define WM_MYMSG WM_USER+100; WPARAM wp; wp = MAKEWPARAM((WORD)0x200, (WORD)0x450); ::PostMessage(NULL, WM_MYMEG, wp, 0); I code a .dll to get this message and then to do something. The problem is, in the program, I get the correct wp value, but when I post the message to the .dll file, it get the wrong value. I use hook function to get this message. It get the message but the WPARAM parameter is wrong. Does anyone could give me some suggestion ? Thanks a lot. :confused:

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Do you call .dll in your main app?If in this way,do you change the module state in your .dll?

      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