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. Can I post a message to a dll from a dll?

Can I post a message to a dll from a dll?

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

    Hello everyone: Can a message be posted to a dll from other dll? If it can be realized, how to receive and handle it? Pls help me. Thank you. -Freehawk

    B D 2 Replies Last reply
    0
    • F freehawk

      Hello everyone: Can a message be posted to a dll from other dll? If it can be realized, how to receive and handle it? Pls help me. Thank you. -Freehawk

      B Offline
      B Offline
      bryce
      wrote on last edited by
      #2

      what do you mean by "post a message" ? do you mean you want to do a postmessage to a CWnd`or somesuch? Bryce --- Publitor, making Pubmed easy. http://www.sohocode.com/publitor

      F 1 Reply Last reply
      0
      • B bryce

        what do you mean by "post a message" ? do you mean you want to do a postmessage to a CWnd`or somesuch? Bryce --- Publitor, making Pubmed easy. http://www.sohocode.com/publitor

        F Offline
        F Offline
        freehawk
        wrote on last edited by
        #3

        Hi. I want to use the function "PostMessage" to post a message to a dll from other dll. But I dont know whether it can be realized. -Freehawk

        B 1 Reply Last reply
        0
        • F freehawk

          Hi. I want to use the function "PostMessage" to post a message to a dll from other dll. But I dont know whether it can be realized. -Freehawk

          B Offline
          B Offline
          bryce
          wrote on last edited by
          #4

          to a dll or to a class or window which is contained in a dll and your dll is loaded when your app loads presumably? --- Publitor, making Pubmed easy. http://www.sohocode.com/publitor

          F 1 Reply Last reply
          0
          • B bryce

            to a dll or to a class or window which is contained in a dll and your dll is loaded when your app loads presumably? --- Publitor, making Pubmed easy. http://www.sohocode.com/publitor

            F Offline
            F Offline
            freehawk
            wrote on last edited by
            #5

            hi, I want to post a message to dll. in the dll there is not window or dialog. -Freehawk

            J 1 Reply Last reply
            0
            • F freehawk

              hi, I want to post a message to dll. in the dll there is not window or dialog. -Freehawk

              J Offline
              J Offline
              Jason Henderson
              wrote on last edited by
              #6

              Unless there is a window with a message loop in your dll, then PostMessage would be useless. Perhaps you should describe what you are wanting to do.

              "Live long and prosper." - Spock

              Jason Henderson
              blog

              B 1 Reply Last reply
              0
              • J Jason Henderson

                Unless there is a window with a message loop in your dll, then PostMessage would be useless. Perhaps you should describe what you are wanting to do.

                "Live long and prosper." - Spock

                Jason Henderson
                blog

                B Offline
                B Offline
                bikram singh
                wrote on last edited by
                #7

                PostThreadMessage() will post a message to a thread that has a GetMessage() loop running. Bikram Singh

                F 1 Reply Last reply
                0
                • F freehawk

                  Hello everyone: Can a message be posted to a dll from other dll? If it can be realized, how to receive and handle it? Pls help me. Thank you. -Freehawk

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

                  freehawk wrote: n a message be posted to a dll from other dll? No. You'll either need to call a function in the other DLL, or use some other form or IPC.


                  "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

                  1 Reply Last reply
                  0
                  • B bikram singh

                    PostThreadMessage() will post a message to a thread that has a GetMessage() loop running. Bikram Singh

                    F Offline
                    F Offline
                    freehawk
                    wrote on last edited by
                    #9

                    Thank you for the reply. Do you tell more details about PostThreadMessage or any source codes? -Freehawk

                    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