MFC程序启动了一个控制台程序,现在需要在两个进程间进行交互,而最大的有关问题在于.

MFC程序启动了一个控制台程序,现在需要在两个进程间进行交互,而最大的问题在于....
    工作进程是一个WIN32的控制台程序,是一个服务器,一直处于运行状态;现在用MFC实现了界面,并启动了工作进程,需求是能够在父子进程之间进行通信,以便控制进行交互和控制。求给些思路啊,或者代码。

------解决方案--------------------
socket编程MFC程序启动了一个控制台程序,现在需要在两个进程间进行交互,而最大的有关问题在于.
------解决方案--------------------
内存映射文件
------解决方案--------------------
Interprocess Communications
For an application to take complete advantage of the features in the Microsoft® BackOffice® environment, you must design it to communicate with other applications as well as with components within BackOffice. Typically, cooperating and communicating applications can be categorized as clients or servers. A client is an application or a process that requests a service from some other process. A server is an application or a process that responds to a client request. Many applications act as both a client and a server, depending on the situation. The process of communication between two or more applications, regardless of their client/server status, is called interprocess communications (IPC).

Before you decide which IPC mechanisms to use in the development of your application, you should determine whether: 

The application should be able to communicate with other applications running on other computers, or whether it is sufficient for the application to communicate only with other applications on the local computer. Some IPC mechanisms work either on the local computer or over a network; others work only on the local computer.