Program to Program Communications

Started by dbingamon, August 12, 2011, 10:24:17 PM

Previous topic - Next topic

dbingamon

I'm working on a program that will perform data acquisition and other programs.
What I'd like to do is have a Data Acquisition engine program always running and when another executable runs, I want to get pressure and temperature readings and be able to send a command back to the DA Engine to turn on a valve.

I've thought about DDE and then I hear people talking about DCOM and I figure there are probably other ways to send something like a short command along with a float point value.

So I'd like to hear some suggestions of ways to do this and then I'll determine the best route to go for my situation.

Been writing C since 1986 and using Windows SDK since 1998 but I haven't seriously used DDE.

CommonTater

Ok... take a look at the WM_COPYDATA message... and PostThreadMessage() commands... I'm sure you'll get some ideas from that.

TimoVJL

#2
Small example of using WM_COPYDATA.
Start that least program twice.

Multiple receivers (TestDlgWM_CopyDataM.zip)
May the source be with you

daniel_bingamon