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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Posting string to window

Posting string to window

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

    Hi, How can I post string from one application to another?. NSS -- modified at 23:40 Tuesday 4th October, 2005

    T 1 Reply Last reply
    0
    • S sthalasayanam

      Hi, How can I post string from one application to another?. NSS -- modified at 23:40 Tuesday 4th October, 2005

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

      sthalasayanam wrote: How can I post string from one application to another?. Try WM_COPYDATA message. here is an example :- http://www.codeproject.com/threads/ipc_wmcopy.asp[^]

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

      cheers, Alok Gupta VC Forum Q&A :- I/ IV

      S 1 Reply Last reply
      0
      • T ThatsAlok

        sthalasayanam wrote: How can I post string from one application to another?. Try WM_COPYDATA message. here is an example :- http://www.codeproject.com/threads/ipc_wmcopy.asp[^]

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

        cheers, Alok Gupta VC Forum Q&A :- I/ IV

        S Offline
        S Offline
        sthalasayanam
        wrote on last edited by
        #3

        Thanks. Why do we have to use SendMessage() instead of PostMessage() if WM_COPYDATA event is to be posted to another windows.

        T 1 Reply Last reply
        0
        • S sthalasayanam

          Thanks. Why do we have to use SendMessage() instead of PostMessage() if WM_COPYDATA event is to be posted to another windows.

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

          sthalasayanam wrote: Why do we have to use SendMessage() instead of PostMessage() if WM_COPYDATA event is to be posted to another windows. Actually there is basic difference between PostMessage and SendMessage.. When you Post message using PostMessage... it just post the message in message queue and return immediately... but in case SendMessage i doesn't return till the target program acknowledge it properly... Now i believe you get the point why WM_COPYDATA using SendMessage instead of PostMessage

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

          cheers, Alok Gupta VC Forum Q&A :- I/ IV

          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