diff options
Diffstat (limited to 'cppe/demo/IceE/MFC/client/HelloClient.cpp')
-rw-r--r-- | cppe/demo/IceE/MFC/client/HelloClient.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/cppe/demo/IceE/MFC/client/HelloClient.cpp b/cppe/demo/IceE/MFC/client/HelloClient.cpp index 03f55a05a5d..fbb96b11150 100644 --- a/cppe/demo/IceE/MFC/client/HelloClient.cpp +++ b/cppe/demo/IceE/MFC/client/HelloClient.cpp @@ -46,30 +46,30 @@ CHelloClientApp::InitInstance() try { int argc = 0; - Ice::InitializationData initData; - initData.properties = Ice::createProperties(); - // - // Set a default value for Hello.Proxy so that the demo will - // run without a configuration file. - // - initData.properties->setProperty("Hello.Proxy", "hello:tcp -p 10000"); + Ice::InitializationData initData; + initData.properties = Ice::createProperties(); + // + // Set a default value for Hello.Proxy so that the demo will + // run without a configuration file. + // + initData.properties->setProperty("Hello.Proxy", "hello:tcp -p 10000"); - // - // Now, load the configuration file if present. Under WinCE we - // use "config.txt" since it can be edited with pocket word. - // + // + // 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"; + string config = "config.txt"; #else - string config = "config"; + string config = "config"; #endif - try - { - initData.properties->load(config); - } - catch(const Ice::FileException&) - { - } + try + { + initData.properties->load(config); + } + catch(const Ice::FileException&) + { + } communicator = Ice::initialize(argc, 0, initData); } |