diff options
Diffstat (limited to 'cppe/demo/IceE/MFC/server/HelloServer.cpp')
-rw-r--r-- | cppe/demo/IceE/MFC/server/HelloServer.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/cppe/demo/IceE/MFC/server/HelloServer.cpp b/cppe/demo/IceE/MFC/server/HelloServer.cpp index b4ff8999560..4fdd5fbb5db 100644 --- a/cppe/demo/IceE/MFC/server/HelloServer.cpp +++ b/cppe/demo/IceE/MFC/server/HelloServer.cpp @@ -51,13 +51,14 @@ BOOL CHelloServerApp::InitInstance() try
{
int argc = 0;
- Ice::PropertiesPtr properties = Ice::createProperties();
+ Ice::InitializationData initData; + initData.properties = Ice::createProperties();
// // Set a default value for Hello.Endpoints so that the demo // will run without a configuration file. // - properties->setProperty("Hello.Endpoints", "tcp -p 10000"); + initData.properties->setProperty("Hello.Endpoints", "tcp -p 10000"); // // Now, load the configuration file if present. Under WinCE we @@ -70,15 +71,16 @@ BOOL CHelloServerApp::InitInstance() #endif try { - properties->load(config); + initData.properties->load(config); } catch(const Ice::FileException&) { } - communicator = Ice::initializeWithProperties(argc, 0, properties);
log = new LogI;
- communicator->setLogger(log);
+ initData.logger = log; + + communicator = Ice::initializeWithProperties(argc, 0, initData);
adapter = communicator->createObjectAdapter("Hello");
}
catch(const IceUtil::Exception& ex)
|