查找MSDN的IPC(Interprocess Communications)专题。 The following IPC mechanisms are supported by the Win32 API: Clipboard COM Dynamic Data Exchange (DDE) File Mapping Mailslots Pipes RPC Windows Sockets WM_COPYDATA 这些都可以用来传递数据,各自优点不同,需要你自己根据使用情况判断。 猜测可能File Mapping比较适合。
or
Pipes
http://www.csdn.net/expert/topic/427/427577.xml
请问如何在2个进程间传递大量数据?
2、用WM_COPYDATE
3、写一个COM
4、内存映射文件
发送进程用postmessage通知?
如果用postmessage通知的话,会不会影响性能?
The following IPC mechanisms are supported by the Win32 API: Clipboard
COM
Dynamic Data Exchange (DDE)
File Mapping
Mailslots
Pipes
RPC
Windows Sockets
WM_COPYDATA
这些都可以用来传递数据,各自优点不同,需要你自己根据使用情况判断。
猜测可能File Mapping比较适合。