VC演示EXE程序通信基于消息机制,要同时编译运行两个子程序,在Sender端发送消息,在Receiver端接收sender端发送的消息,截图是sender端的运行效果。其中发送消息有三种方法,请看以下代码:   //发送消息命令一   voidCSenderDlg::OnCommand1()   {    //找到接收消息的窗口(窗口名为Receiver)    CStringstr="Receiver";    CWnd*pWnd=CWnd::FindWindow(NULL,str);    if(pWnd)    pWnd->SendMessage(WM_COMM,0,0