Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing data between QM exe's - Stdin, Stdout?
#2
Stdin etc can be used only when exe1 launches exe2 and waits until it exits. Function RunConsole2 uses it.

Other inter-process communication (IPC) methods that can be used in QM:

1. SendMessage WM_COPYDATA. Easy, fast. Useful when the receiver thread has windows.

2. Pipes. Not so easy. Fast. The receiver thread should not have windows. There are no QM classes for it, but I have some test code somewhere.

3. Store data in shared memory (like in files). Not very easy. Fast. Useful when you want to store shared data for a longer time, not just to send-receive like with 1 or 2. To allocate shared memory can be used QM class __SharedMemory.

4. Store data in registry (like in files). Easy, slow.

5. Mailslots. Not very easy. Useful when need asynchronous notifications (rarely). One receiver, multiple senders.

6. TCP/IP (WinSock). Quite easy with QM class TcpSocket from Archive.qml. Probably slower than 1, 2 and 3, but need to test to confirm it. The two programs can even run on different computers on local network or internet.

http://www.codeproject.com/Articles/13724/Windows-IPC

What IPC methods can be used in TCL scripts?


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)