summaryrefslogtreecommitdiff
path: root/cpp/demo/IcePatch2/MFC/PatchClient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/IcePatch2/MFC/PatchClient.cpp')
-rwxr-xr-xcpp/demo/IcePatch2/MFC/PatchClient.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/cpp/demo/IcePatch2/MFC/PatchClient.cpp b/cpp/demo/IcePatch2/MFC/PatchClient.cpp
index 7533d60277e..66abeb27f8c 100755
--- a/cpp/demo/IcePatch2/MFC/PatchClient.cpp
+++ b/cpp/demo/IcePatch2/MFC/PatchClient.cpp
@@ -56,11 +56,9 @@ CPatchClientApp::InitInstance()
}
Ice::PropertiesPtr properties = communicator->getProperties();
- CString path = properties->getPropertyWithDefault("IcePatch2.Endpoints", "").c_str();
- if(path.IsEmpty())
+ if(properties->getProperty("IcePatch2.Endpoints").empty())
{
- AfxMessageBox(CString("Please run with the --IcePatch2.Endpoints option."), MB_OK|MB_ICONEXCLAMATION);
- return FALSE;
+ properties->setProperty("IcePatch2.Endpoints", "tcp -h 127.0.0.1 -p 10000");
}
CPatchDlg dlg(communicator);