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. Message Loop...

Message Loop...

Scheduled Pinned Locked Moved C / C++ / MFC
question
9 Posts 7 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.
  • B Offline
    B Offline
    birajendu
    wrote on last edited by
    #1

    Hi, I have two applications suppose AppA AppB. Application AppA is window class application and AppB is non windowbased application. AppA, I have a message loop which used to get all regular messages. But I want to know how from AppB I will know which message AppA got.?

    Birajendu SonicWALL Bangalore India

    D J 2 Replies Last reply
    0
    • B birajendu

      Hi, I have two applications suppose AppA AppB. Application AppA is window class application and AppB is non windowbased application. AppA, I have a message loop which used to get all regular messages. But I want to know how from AppB I will know which message AppA got.?

      Birajendu SonicWALL Bangalore India

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

      To clarify, you want AppB to monitor AppA's messages?

      "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      B 1 Reply Last reply
      0
      • D David Crow

        To clarify, you want AppB to monitor AppA's messages?

        "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        B Offline
        B Offline
        birajendu
        wrote on last edited by
        #3

        Yes, exactly.

        Birajendu SonicWALL Bangalore India

        S M R 3 Replies Last reply
        0
        • B birajendu

          Yes, exactly.

          Birajendu SonicWALL Bangalore India

          S Offline
          S Offline
          Saurabh Garg
          wrote on last edited by
          #4

          Try http://research.microsoft.com/en-us/projects/detours[^] -Saurabh

          1 Reply Last reply
          0
          • B birajendu

            Yes, exactly.

            Birajendu SonicWALL Bangalore India

            M Offline
            M Offline
            Moak
            wrote on last edited by
            #5

            You know that you could also use Spy++[^]. Shows you window messages and even more.

            Webchat in Europe :java: (only 4K)

            1 Reply Last reply
            0
            • B birajendu

              Yes, exactly.

              Birajendu SonicWALL Bangalore India

              R Offline
              R Offline
              Rajesh R Subramanian
              wrote on last edited by
              #6

              Why do you need to do such a thing? What exactly are you writing? Can't you just have App A to send only relevant messages to App B instead? :confused:

              It is a crappy thing, but it's life -^ Carlo Pallini

              B 1 Reply Last reply
              0
              • R Rajesh R Subramanian

                Why do you need to do such a thing? What exactly are you writing? Can't you just have App A to send only relevant messages to App B instead? :confused:

                It is a crappy thing, but it's life -^ Carlo Pallini

                B Offline
                B Offline
                birajendu
                wrote on last edited by
                #7

                My Basic requirement is to monitor system standbay/shutdown message from window .But i need to do that in AppB (which is a non window based application). But application AppA is window based so i am receiving all these StandBy/shutdown messages. So if there is a way to check when system goes shutdown from non-window based appliacations , than my need will be satisfied.

                Birajendu SonicWALL Bangalore India

                L 1 Reply Last reply
                0
                • B birajendu

                  My Basic requirement is to monitor system standbay/shutdown message from window .But i need to do that in AppB (which is a non window based application). But application AppA is window based so i am receiving all these StandBy/shutdown messages. So if there is a way to check when system goes shutdown from non-window based appliacations , than my need will be satisfied.

                  Birajendu SonicWALL Bangalore India

                  L Offline
                  L Offline
                  Luc Pattyn
                  wrote on last edited by
                  #8

                  why don't you add a window to your non-window app, so you can get window messages? you could make it invisible, or locate it outside the desktop area. :)

                  Luc Pattyn


                  Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.


                  Local announcement (Antwerp region): Lange Wapper? Neen!


                  1 Reply Last reply
                  0
                  • B birajendu

                    Hi, I have two applications suppose AppA AppB. Application AppA is window class application and AppB is non windowbased application. AppA, I have a message loop which used to get all regular messages. But I want to know how from AppB I will know which message AppA got.?

                    Birajendu SonicWALL Bangalore India

                    J Offline
                    J Offline
                    jinjiashan
                    wrote on last edited by
                    #9

                    use SetWindowsHookEx Function,it can get the message which passed to the target thread you want to watch

                    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