diff options
Diffstat (limited to 'cppe/demo/IceE/MFC/client/HelloClient.cpp')
-rw-r--r-- | cppe/demo/IceE/MFC/client/HelloClient.cpp | 14 |
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)
|