sending messages between applications
-
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
-
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
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
-
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
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.
-
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
You need to implement the connnection point in your com. The World is getting smaller and so are the people.
-
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
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.
-
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.
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