summaryrefslogtreecommitdiff
path: root/cppe/demo/IceE/MFC/client/HelloClient.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-08-09 03:44:48 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-08-09 03:44:48 +0000
commitede6f592b3d2b109e8c59c07c00f11b248eaeda5 (patch)
tree5e89e38fd9193b9c486cc936a9488702f4f8111e /cppe/demo/IceE/MFC/client/HelloClient.cpp
parentFixed a few build errors (diff)
downloadice-ede6f592b3d2b109e8c59c07c00f11b248eaeda5.tar.bz2
ice-ede6f592b3d2b109e8c59c07c00f11b248eaeda5.tar.xz
ice-ede6f592b3d2b109e8c59c07c00f11b248eaeda5.zip
cleanup. CE demos now use config.txt
Diffstat (limited to 'cppe/demo/IceE/MFC/client/HelloClient.cpp')
-rw-r--r--cppe/demo/IceE/MFC/client/HelloClient.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/cppe/demo/IceE/MFC/client/HelloClient.cpp b/cppe/demo/IceE/MFC/client/HelloClient.cpp
index 7891a1c635c..021a62a1438 100644
--- a/cppe/demo/IceE/MFC/client/HelloClient.cpp
+++ b/cppe/demo/IceE/MFC/client/HelloClient.cpp
@@ -52,16 +52,24 @@ CHelloClientApp::InitInstance()
// run without a configuration file.
//
properties->setProperty("Hello.Proxy", "hello:tcp -p 10000");
+
//
- // Now, load the configuration file if present.
+ // Now, load the configuration file if present. Under WinCE we
+ // use "config.txt" since it can be edited with pocket word.
//
+#ifdef _WIN32_WCE
+ string config = "config.txt";
+#else
+ string config = "config";
+#endif
try
{
- properties->load("config");
+ properties->load(config);
}
- catch(const Ice::FileException&)
+ catch(const FileException&)
{
}
+
communicator = Ice::initializeWithProperties(argc, 0, properties);
}
catch(const Ice::Exception& ex)