summaryrefslogtreecommitdiff
path: root/cppe/demo/IceE/throughput/WinCEClient.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-04-07 14:03:22 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-04-07 14:03:22 +0000
commitc95db5ffb0a898568066a79aaa15acbaee24ac3a (patch)
treeb57c3f89352234f57c5c95b930ed5e45fd019013 /cppe/demo/IceE/throughput/WinCEClient.cpp
parentBug 803 - Changed communicator initialzation (diff)
downloadice-c95db5ffb0a898568066a79aaa15acbaee24ac3a.tar.bz2
ice-c95db5ffb0a898568066a79aaa15acbaee24ac3a.tar.xz
ice-c95db5ffb0a898568066a79aaa15acbaee24ac3a.zip
Bug 803 - changed communicator initialization
Diffstat (limited to 'cppe/demo/IceE/throughput/WinCEClient.cpp')
-rwxr-xr-xcppe/demo/IceE/throughput/WinCEClient.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/cppe/demo/IceE/throughput/WinCEClient.cpp b/cppe/demo/IceE/throughput/WinCEClient.cpp
index 62beedbfe44..c0362300956 100755
--- a/cppe/demo/IceE/throughput/WinCEClient.cpp
+++ b/cppe/demo/IceE/throughput/WinCEClient.cpp
@@ -108,13 +108,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 Throughput.Proxy so that the demo will
// run without a configuration file.
//
- properties->setProperty("Throughput.Proxy", "throughput:tcp -p 10000");
+ initData.properties->setProperty("Throughput.Proxy", "throughput:tcp -p 10000");
//
// Now, load the configuration file if present. Under WinCE we
@@ -122,16 +123,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);
const char* proxyProperty = "Throughput.Proxy";
- string proxy = properties->getProperty(proxyProperty);
+ string proxy = initData.properties->getProperty(proxyProperty);
ThroughputPrx throughput = ThroughputPrx::checkedCast(communicator->stringToProxy(proxy));
if(!throughput)