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. sending messages between applications

sending messages between applications

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

    Hi, I'm writing a utility application which needs to send and receive messages to/from a plugin I've written for another application, but I'm not sure where to start looking... The plugin is developed using an architecture derived from COM (apparently) and I've got this up and running and talking to its host app just fine. My own utility application is also up and running and working fine. Now I need to send messages back and forth between the two. I don't think I can use custom Window messages as the plugin doesn't have a window it just runs inside the host app. I'm investigating network related stuff but I'm guessing this is overcomplicating things. Any advice would be greatly appreciated. Cheers, Simon

    C T P G 4 Replies Last reply
    0
    • S srev

      Hi, I'm writing a utility application which needs to send and receive messages to/from a plugin I've written for another application, but I'm not sure where to start looking... The plugin is developed using an architecture derived from COM (apparently) and I've got this up and running and talking to its host app just fine. My own utility application is also up and running and working fine. Now I need to send messages back and forth between the two. I don't think I can use custom Window messages as the plugin doesn't have a window it just runs inside the host app. I'm investigating network related stuff but I'm guessing this is overcomplicating things. Any advice would be greatly appreciated. Cheers, Simon

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      If they are on the same machine, look up WM_COPYDATA in MSDN. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

      1 Reply Last reply
      0
      • S srev

        Hi, I'm writing a utility application which needs to send and receive messages to/from a plugin I've written for another application, but I'm not sure where to start looking... The plugin is developed using an architecture derived from COM (apparently) and I've got this up and running and talking to its host app just fine. My own utility application is also up and running and working fine. Now I need to send messages back and forth between the two. I don't think I can use custom Window messages as the plugin doesn't have a window it just runs inside the host app. I'm investigating network related stuff but I'm guessing this is overcomplicating things. Any advice would be greatly appreciated. Cheers, Simon

        T Offline
        T Offline
        Taka Muraoka
        wrote on last edited by
        #3

        srev wrote: I don't think I can use custom Window messages as the plugin doesn't have a window it just runs inside the host app. You can also post messages to a thread[^]. But if you're using COM, shouldn't you be using events?


        "Sucks less" isn't progress - Kent Beck [^] Awasu 1.1.4 [^]: A free RSS reader with support for Code Project.

        1 Reply Last reply
        0
        • S srev

          Hi, I'm writing a utility application which needs to send and receive messages to/from a plugin I've written for another application, but I'm not sure where to start looking... The plugin is developed using an architecture derived from COM (apparently) and I've got this up and running and talking to its host app just fine. My own utility application is also up and running and working fine. Now I need to send messages back and forth between the two. I don't think I can use custom Window messages as the plugin doesn't have a window it just runs inside the host app. I'm investigating network related stuff but I'm guessing this is overcomplicating things. Any advice would be greatly appreciated. Cheers, Simon

          P Offline
          P Offline
          Prakash Nadar
          wrote on last edited by
          #4

          You need to implement the connnection point in your com. The World is getting smaller and so are the people.

          1 Reply Last reply
          0
          • S srev

            Hi, I'm writing a utility application which needs to send and receive messages to/from a plugin I've written for another application, but I'm not sure where to start looking... The plugin is developed using an architecture derived from COM (apparently) and I've got this up and running and talking to its host app just fine. My own utility application is also up and running and working fine. Now I need to send messages back and forth between the two. I don't think I can use custom Window messages as the plugin doesn't have a window it just runs inside the host app. I'm investigating network related stuff but I'm guessing this is overcomplicating things. Any advice would be greatly appreciated. Cheers, Simon

            G Offline
            G Offline
            GeMe_Hendrix
            wrote on last edited by
            #5

            screw COM, it's for VB programmers ;P There are multiple options you have. You could try the following... - Use sockets. CSocket kicks butt for simple communication and free of charge you also them communcating on different machines. - Create a dummy window and try using a registered windows message (RegisterWindowMessage in MSDN). - Use pipes. Never done this myself but its another form of process communcation. - If you really want to pass a lot of data and want it to be very speedy but at the same time a bit of a management nightmare try creating some shared memory between the applications.

            S 1 Reply Last reply
            0
            • G GeMe_Hendrix

              screw COM, it's for VB programmers ;P There are multiple options you have. You could try the following... - Use sockets. CSocket kicks butt for simple communication and free of charge you also them communcating on different machines. - Create a dummy window and try using a registered windows message (RegisterWindowMessage in MSDN). - Use pipes. Never done this myself but its another form of process communcation. - If you really want to pass a lot of data and want it to be very speedy but at the same time a bit of a management nightmare try creating some shared memory between the applications.

              S Offline
              S Offline
              srev
              wrote on last edited by
              #6

              Guys, Thanks to all of you for going to the trouble of answering my plea. CodeProject rules! I plan to start investigating CSocket first as the next stage of development is a multi-machine version of the app anyway - GeMe you just saved me from another embarrassing post! Thanks for all your great feedback though. Simon

              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