diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-04-07 14:03:22 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-04-07 14:03:22 +0000 |
commit | c95db5ffb0a898568066a79aaa15acbaee24ac3a (patch) | |
tree | b57c3f89352234f57c5c95b930ed5e45fd019013 /cppe/demo/IceE/minimal/WinCEClient.cpp | |
parent | Bug 803 - Changed communicator initialzation (diff) | |
download | ice-c95db5ffb0a898568066a79aaa15acbaee24ac3a.tar.bz2 ice-c95db5ffb0a898568066a79aaa15acbaee24ac3a.tar.xz ice-c95db5ffb0a898568066a79aaa15acbaee24ac3a.zip |
Bug 803 - changed communicator initialization
Diffstat (limited to 'cppe/demo/IceE/minimal/WinCEClient.cpp')
-rw-r--r-- | cppe/demo/IceE/minimal/WinCEClient.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/cppe/demo/IceE/minimal/WinCEClient.cpp b/cppe/demo/IceE/minimal/WinCEClient.cpp index f4ebc3711f9..ba12b687f79 100644 --- a/cppe/demo/IceE/minimal/WinCEClient.cpp +++ b/cppe/demo/IceE/minimal/WinCEClient.cpp @@ -24,13 +24,14 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmd try { - 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 @@ -38,15 +39,16 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmd // try { - properties->load("config.txt"); + initData.properties->load("config.txt"); } catch(const Ice::FileException&) { } - communicator = Ice::initializeWithProperties(__argc, __argv, properties); + communicator = Ice::initialize(__argc, __argv, initData); - HelloPrx hello = HelloPrx::checkedCast(communicator->stringToProxy(properties->getProperty("Hello.Proxy"))); + HelloPrx hello = + HelloPrx::checkedCast(communicator->stringToProxy(initData.properties->getProperty("Hello.Proxy"))); if(!hello) { MessageBox(NULL, L"invalid proxy", L"Minimal Client", MB_ICONEXCLAMATION | MB_OK); |