diff options
Diffstat (limited to 'cppe/demo/IceE/MFC/client/HelloClient.cpp')
-rw-r--r-- | cppe/demo/IceE/MFC/client/HelloClient.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cppe/demo/IceE/MFC/client/HelloClient.cpp b/cppe/demo/IceE/MFC/client/HelloClient.cpp index 00c19bf82dd..fbb5246fe0a 100644 --- a/cppe/demo/IceE/MFC/client/HelloClient.cpp +++ b/cppe/demo/IceE/MFC/client/HelloClient.cpp @@ -47,12 +47,13 @@ CHelloClientApp::InitInstance() try
{
int argc = 0;
- Ice::PropertiesPtr properties = Ice::createProperties();
+ Ice::InitializationData initData; + initData.properties = Ice::createProperties();
// // Set a default value for Hello.Proxy so that the demo will // run without a configuration file. // - properties->setProperty("Hello.Proxy", "hello:tcp -p 10000"); + initData.properties->setProperty("Hello.Proxy", "hello:tcp -p 10000"); // // Now, load the configuration file if present. Under WinCE we @@ -65,13 +66,13 @@ CHelloClientApp::InitInstance() #endif try { - properties->load(config); + initData.properties->load(config); } catch(const Ice::FileException&) { } - communicator = Ice::initializeWithProperties(argc, 0, properties);
+ communicator = Ice::initialize(argc, 0, initData);
}
catch(const Ice::Exception& ex)
{
|