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. Problem with SendMessage.

Problem with SendMessage.

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++jsonquestion
7 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.
  • U Offline
    U Offline
    uday kiran janaswamy
    wrote on last edited by
    #1

    Hi all, How can i send a Message from One Class to Another Class using ::SendMessage(...) Api. I want to Send a Message. (i.e) In one.cpp file i want to Send a Message that message must Call Function in the Second.cpp file. how can i pass a String Value to the Second File(second.cpp) from First File(one.cpp). Please help me out.

    Uday kiran

    C 1 Reply Last reply
    0
    • U uday kiran janaswamy

      Hi all, How can i send a Message from One Class to Another Class using ::SendMessage(...) Api. I want to Send a Message. (i.e) In one.cpp file i want to Send a Message that message must Call Function in the Second.cpp file. how can i pass a String Value to the Second File(second.cpp) from First File(one.cpp). Please help me out.

      Uday kiran

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      uday kiran janaswamy wrote:

      How can i send a Message from One Class to Another Class using

      Send message is not used to send messages between classes but to send a message to a specific window. If your class is not managing a window, then you cannot send a message to it.


      Cédric Moonen Software developer
      Charting control [v1.1]

      U 1 Reply Last reply
      0
      • C Cedric Moonen

        uday kiran janaswamy wrote:

        How can i send a Message from One Class to Another Class using

        Send message is not used to send messages between classes but to send a message to a specific window. If your class is not managing a window, then you cannot send a message to it.


        Cédric Moonen Software developer
        Charting control [v1.1]

        U Offline
        U Offline
        uday kiran janaswamy
        wrote on last edited by
        #3

        hi Cedric, Please let me know how to send a message from One Window to Another Window.

        Uday kiran

        C T D 3 Replies Last reply
        0
        • U uday kiran janaswamy

          hi Cedric, Please let me know how to send a message from One Window to Another Window.

          Uday kiran

          C Offline
          C Offline
          Cedric Moonen
          wrote on last edited by
          #4

          I think this[^] is what you are looking for.


          Cédric Moonen Software developer
          Charting control [v1.1]

          1 Reply Last reply
          0
          • U uday kiran janaswamy

            hi Cedric, Please let me know how to send a message from One Window to Another Window.

            Uday kiran

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

            uday kiran janaswamy wrote:

            Please let me know how to send a message from One Window to Another Window.

            IMHO please use WM_COPYDATA to String and othe complex data between two window .. example[^]

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

            cheers, Alok Gupta Global Interface Table: An Easy Way to Marshal an Interface Pointer[new] VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

            1 Reply Last reply
            0
            • U uday kiran janaswamy

              hi Cedric, Please let me know how to send a message from One Window to Another Window.

              Uday kiran

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

              uday kiran janaswamy wrote:

              Please let me know how to send a message from One Window to Another Window.

              Use SendMessage() or PostMessage().


              "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

              "Judge not by the eye but by the heart." - Native American Proverb

              U 1 Reply Last reply
              0
              • D David Crow

                uday kiran janaswamy wrote:

                Please let me know how to send a message from One Window to Another Window.

                Use SendMessage() or PostMessage().


                "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

                "Judge not by the eye but by the heart." - Native American Proverb

                U Offline
                U Offline
                uday kiran janaswamy
                wrote on last edited by
                #7

                Dear David, Thank you very much.

                Uday kiran

                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