tags:

views:

398

answers:

6

I have a TCL script running on windows. I need to communicate to a old vc++ 6 app running in a different process. I need to have 2 way communication. In Linux I would use dbus, but what IPC strategy should I use for windows?

+4  A: 

Boost.interprocess has various ways such as shared-memory and message passing for C++. You could always start there and see what is compatible with your script.

rlbond
+3  A: 

How about named pipes ?

aJ
+1  A: 

A list of options from MSDN : http://msdn.microsoft.com/en-us/library/aa365574(VS.85).aspx

If you want something more 'enterprisy', there's also Windows Message Queue.

Corbin March
+2  A: 

Plain old sockets work great in TCL on Windows (and Linux, and everywhere TCP/IP is implemented :)

Nikolai N Fetissov
A: 

From the Tcl perspective the simplest way, if your VC6 app allows it, would be to get TCL to start the VC app and then use stdin and stdout to communicate. If that's not possible the the Tcl socket command allows you to establish a TCP socket connection with another process.

See here for details of the first and here for some info on sockets.

Jackson
+2  A: 

Tcl on windows has dde support built-in (see docs for the dde command) which could help if the other application supports this. Another option is the TWAPI (Tcl Windows API) extension, which has facilities for sending keyboard and mouse input to another application, see http://twapi.magicsplat.com/input.html .

Colin Macleod
Perfect. Just what I was looking for.
Byron Whitlock