From c893b51f897df5b68f5f391e7fb293b021878d2d Mon Sep 17 00:00:00 2001 From: Cory Winter Date: Fri, 11 Mar 2005 15:03:34 +0000 Subject: merge from 2_1_branch, added error dialog when run without the IcePatch2.Endpoints option --- cpp/demo/IcePatch2/MFC/PatchClient.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cpp/demo/IcePatch2/MFC/PatchClient.cpp') diff --git a/cpp/demo/IcePatch2/MFC/PatchClient.cpp b/cpp/demo/IcePatch2/MFC/PatchClient.cpp index a48b7a5efd8..7533d60277e 100755 --- a/cpp/demo/IcePatch2/MFC/PatchClient.cpp +++ b/cpp/demo/IcePatch2/MFC/PatchClient.cpp @@ -55,6 +55,14 @@ CPatchClientApp::InitInstance() return FALSE; } + Ice::PropertiesPtr properties = communicator->getProperties(); + CString path = properties->getPropertyWithDefault("IcePatch2.Endpoints", "").c_str(); + if(path.IsEmpty()) + { + AfxMessageBox(CString("Please run with the --IcePatch2.Endpoints option."), MB_OK|MB_ICONEXCLAMATION); + return FALSE; + } + CPatchDlg dlg(communicator); m_pMainWnd = &dlg; dlg.DoModal(); -- cgit v1.2.3