summaryrefslogtreecommitdiff
path: root/cpp/demo/IcePatch2/MFC/PatchClient.cpp
diff options
context:
space:
mode:
authorCory Winter <cory@zeroc.com>2005-03-11 15:03:34 +0000
committerCory Winter <cory@zeroc.com>2005-03-11 15:03:34 +0000
commitc893b51f897df5b68f5f391e7fb293b021878d2d (patch)
treea78d5d780f0b1120163482793bd394af7a52c32b /cpp/demo/IcePatch2/MFC/PatchClient.cpp
parentfix source dist demo project file HintPaths to convert "icecs" to (diff)
downloadice-c893b51f897df5b68f5f391e7fb293b021878d2d.tar.bz2
ice-c893b51f897df5b68f5f391e7fb293b021878d2d.tar.xz
ice-c893b51f897df5b68f5f391e7fb293b021878d2d.zip
merge from 2_1_branch, added error dialog when run without the
IcePatch2.Endpoints option
Diffstat (limited to 'cpp/demo/IcePatch2/MFC/PatchClient.cpp')
-rwxr-xr-xcpp/demo/IcePatch2/MFC/PatchClient.cpp8
1 files changed, 8 insertions, 0 deletions
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();