CMsgLogin成员
_IApplicationPtr m_pMainApp;
//传入接口实例w
void CMsgLogin::SetAppDispatch(LPDISPATCH pInst)
{
m_pMainApp=pInst;return;
}
//调用客户端的方法ym
void CMsgLogin::CallApplication() 
{
// TODO: Add your dispatch handler code here
_IMessageMonitorPtr pMessageMonitor;
pMessageMonitor=NULL;
if(m_pMainApp!=NULL)
{
pMessageMonitor=m_pMainApp->GetMessageMonitor();
if(pMessageMonitor!=NULL)
pMessageMonitor->AddNew("",false,"","",
"","");
}
}
//在客端调CallApplication能成功,可在服务端调用CallApplication出错,怎么办?d