diff options
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(); |