带有MFC的ATL COM EXE服务器 [英] ATL COM EXE Server with MFC
本文介绍了带有MFC的ATL COM EXE服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我有一个带MFC支持的ATL COM服务器.
我尝试在服务器计算机上显示自定义对话框.
该窗口仅在本地"启动服务器时可见.
Hello,
I have an ATL COM Server with MFC support.
I try to display a custom dialog on server machine.
The window is visible only if the server is started "locally"
STDMETHODIMP CMonitor::DisplayDialog(...)
{
if( !m_pCustomDialog){
m_pCustomDialog = new CCustomDialog();
m_pCustomDialog->ShowWindow( SW_SHOW);
...
}
}
STDMETHODIMP CMonitor::DestroyDialog(...)
{
if(m_pCustomDialog){
m_pCustomDialog->DestroyWindow();
delete m_pCustomDialog;
m_pCustomDialog = NULL;
}
}
推荐答案
//仅当服务器是本地"启动时,窗口才可见.
在其他情况下,您在哪里找到它? :)
// The window is visible only if the server is started "locally"
Where did you find it in other case ? :)
这篇关于带有MFC的ATL COM EXE服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文