Two Windows program (P1, P2, P1 when the program is running, it creates a subroutine P2 (i.e., P1 invokes the P2), among them P1 is the parent process, P2 founded by P1, P2 is the child,
P1 and P2 each provide a text box input (line) and a list box, the user can enter text in the text box, click the send button can be sent to each other through the message mechanism, and the other list box, according to
P1 and P2 each provide a similar OpenFileDialog controls and a text box, each program can open another file, and displayed in the input text box, click the send button can be sent to another process through Shared memory and on the other side of the text box, according to
O great god answer!!!!!!!!!!!!!!
CodePudding user response:
http://bbs.ichunqiu.com/thread-8612-1-1.html? The from=CSDNCodePudding user response:
The problem is you want? Write where can't write, can write the code on nowCodePudding user response:
Memory between processes is isolated, each have each memory space, and to communicate between processes must use the system to provide the communication mechanism ofShared memory
Dde
Cutting board
Dcom
The sock
Etc.
CodePudding user response:
http://bbs.csdn.net/topics/390374955CodePudding user response:
This is the process of communication between,A named pipe
The socket and so on can be implemented
CodePudding user response: