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. How to read Windows Message

How to read Windows Message

Scheduled Pinned Locked Moved C / C++ / MFC
c++delphitutorialquestion
4 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.
  • L Offline
    L Offline
    louis 0
    wrote on last edited by
    #1

    Hi all, I have a program written in Delphi that broadcats a window message. I have manage to read this message using Delphi code using the RegisterWindowMessage function, Delphi's TApplicationEvents component OnMessage function with great succes. Now I want to read this same message using my beloved Visual C++ code. Where do I start? Thanks

    D 1 Reply Last reply
    0
    • L louis 0

      Hi all, I have a program written in Delphi that broadcats a window message. I have manage to read this message using Delphi code using the RegisterWindowMessage function, Delphi's TApplicationEvents component OnMessage function with great succes. Now I want to read this same message using my beloved Visual C++ code. Where do I start? Thanks

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      louis wrote: Now I want to read this same message using my beloved Visual C++ code. Just provide a message handler for the message that is being broadcast. Put the handler in between BEGIN_MESSAGE_MAP() and END_MESSAGE_MAP().


      "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

      L 1 Reply Last reply
      0
      • D David Crow

        louis wrote: Now I want to read this same message using my beloved Visual C++ code. Just provide a message handler for the message that is being broadcast. Put the handler in between BEGIN_MESSAGE_MAP() and END_MESSAGE_MAP().


        "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

        L Offline
        L Offline
        louis 0
        wrote on last edited by
        #3

        Thanks, I have done so. That part works. I am still not able to update my listview with the new data. The program gives an application error. One more question. How do I read the handle of the application. Thanks again. Cheers

        D 1 Reply Last reply
        0
        • L louis 0

          Thanks, I have done so. That part works. I am still not able to update my listview with the new data. The program gives an application error. One more question. How do I read the handle of the application. Thanks again. Cheers

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          louis wrote: I am still not able to update my listview with the new data. What does the code look like that is doing the updating? louis wrote: The program gives an application error. And that error would be?


          "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

          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