diff options
author | Cory Winter <cory@zeroc.com> | 2005-03-11 15:03:34 +0000 |
---|---|---|
committer | Cory Winter <cory@zeroc.com> | 2005-03-11 15:03:34 +0000 |
commit | c893b51f897df5b68f5f391e7fb293b021878d2d (patch) | |
tree | a78d5d780f0b1120163482793bd394af7a52c32b /cpp/demo/IcePatch2/MFC/PatchClient.cpp | |
parent | fix source dist demo project file HintPaths to convert "icecs" to (diff) | |
download | ice-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-x | cpp/demo/IcePatch2/MFC/PatchClient.cpp | 8 |
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(); |