http://www.codeproject.com/threads/ipc_tute.aspInterprocess communication tutorial By Alex Farber Using memory mapped files, mutexes and HWND_BROADCAST messages for interprocess communication
方法很多,socket,发送消息,你自己搜索一下,进程 通信
也可以参看我写的一段内容,打开下面的 link: http://community.csdn.net/Expert/TopicView1.asp?id=3198421然后搜索我的 id 即字符串 sgnaw 即可找到 "共享内存使用指南" 部分.
能不能说得详细一点阿!
兄弟很菜的!
By Alex Farber Using memory mapped files, mutexes and HWND_BROADCAST messages for interprocess communication
http://community.csdn.net/Expert/TopicView1.asp?id=3198421然后搜索我的 id 即字符串 sgnaw 即可找到 "共享内存使用指南" 部分.
UINT nCooperationMsg=RegisterWindowMessage(_T("DATACHANGED__NOTIFY"));
//.....
BOOL CXXXDlg::PreTranslateMessage(MSG* pMsg)
{
if (pMsg->message==theApp.m_nCooperationMsg)
{
//......
}
//......
}
主程序中:
UINT nCooperationMsg=RegisterWindowMessage(_T("DATACHANGED__NOTIFY"));DWORD dwTmp=BSM_APPLICATIONS;
BroadcastSystemMessage(BSF_POSTMESSAGE, &dwTmp, nCooperationMsg, TRUE, 1);