diff options
Diffstat (limited to 'cppe/demo/IceE/MFC/server/HelloServer.cpp')
-rw-r--r-- | cppe/demo/IceE/MFC/server/HelloServer.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/cppe/demo/IceE/MFC/server/HelloServer.cpp b/cppe/demo/IceE/MFC/server/HelloServer.cpp index 98194c1e96a..bd5f3391a3c 100644 --- a/cppe/demo/IceE/MFC/server/HelloServer.cpp +++ b/cppe/demo/IceE/MFC/server/HelloServer.cpp @@ -50,34 +50,34 @@ BOOL CHelloServerApp::InitInstance() try { int argc = 0; - Ice::InitializationData initData; + Ice::InitializationData initData; initData.properties = Ice::createProperties(); - // - // Set a default value for Hello.Endpoints so that the demo - // will run without a configuration file. - // - initData.properties->setProperty("Hello.Endpoints", "tcp -p 10000"); + // + // Set a default value for Hello.Endpoints so that the demo + // will run without a configuration file. + // + initData.properties->setProperty("Hello.Endpoints", "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&) + { + } log = new LogI; - initData.logger = log; + initData.logger = log; communicator = Ice::initialize(argc, 0, initData); adapter = communicator->createObjectAdapter("Hello"); |