2 #include "NamingViewer.h"
3 #include "AddNameServerDlg.h"
8 static char THIS_FILE
[] = __FILE__
;
11 /////////////////////////////////////////////////////////////////////////////
12 // CAddNameServerDlg dialog
15 CAddNameServerDlg::CAddNameServerDlg(CWnd
* pParent
/*=NULL*/)
16 : CDialog(CAddNameServerDlg::IDD
, pParent
)
18 //{{AFX_DATA_INIT(CAddNameServerDlg)
19 m_IOR
= _T("corbaloc:iiop:1.1@myserver:nsport/NameService");
25 void CAddNameServerDlg::DoDataExchange(CDataExchange
* pDX
)
27 CDialog::DoDataExchange(pDX
);
28 //{{AFX_DATA_MAP(CAddNameServerDlg)
29 DDX_Text(pDX
, IDC_IOR
, m_IOR
);
30 DDX_Text(pDX
, IDC_NAME
, m_Name
);
35 BEGIN_MESSAGE_MAP(CAddNameServerDlg
, CDialog
)
36 //{{AFX_MSG_MAP(CAddNameServerDlg)
40 /////////////////////////////////////////////////////////////////////////////
41 // CAddNameServerDlg message handlers
43 void CAddNameServerDlg::OnOK()
46 if (m_Name
.Trim() == _T("")) // Is a particular field still empty?
48 AfxMessageBox(_T("Please enter a server name"));