summaryrefslogtreecommitdiff
path: root/cppe/demo/IceE/throughput/WinCEClient.cpp
diff options
context:
space:
mode:
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)