Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
See more:
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;
   }
}
Posted
Updated 29-Nov-10 5:01am
v2
Comments
JF2015 29-Nov-10 11:02am    
Edited to add pre tags.

1 solution

// The window is visible only if the server is started "locally"

Where did you find it in other case ? :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900