diff options
author | Matthew Newhook <matthew@zeroc.com> | 2005-08-09 03:44:48 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2005-08-09 03:44:48 +0000 |
commit | ede6f592b3d2b109e8c59c07c00f11b248eaeda5 (patch) | |
tree | 5e89e38fd9193b9c486cc936a9488702f4f8111e /cppe/demo/IceE/latency/WinCEClient.cpp | |
parent | Fixed a few build errors (diff) | |
download | ice-ede6f592b3d2b109e8c59c07c00f11b248eaeda5.tar.bz2 ice-ede6f592b3d2b109e8c59c07c00f11b248eaeda5.tar.xz ice-ede6f592b3d2b109e8c59c07c00f11b248eaeda5.zip |
cleanup. CE demos now use config.txt
Diffstat (limited to 'cppe/demo/IceE/latency/WinCEClient.cpp')
-rwxr-xr-x | cppe/demo/IceE/latency/WinCEClient.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/cppe/demo/IceE/latency/WinCEClient.cpp b/cppe/demo/IceE/latency/WinCEClient.cpp index 8703f296763..b82339e947f 100755 --- a/cppe/demo/IceE/latency/WinCEClient.cpp +++ b/cppe/demo/IceE/latency/WinCEClient.cpp @@ -112,30 +112,28 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmd Ice::PropertiesPtr properties = Ice::createProperties(); // - // Set a default value for Hello.Proxy so that the demo will + // Set a default value for Latency.Proxy so that the demo will // run without a configuration file. // - properties->setProperty("Latency.Ping", "ping:tcp -p 10000"); + properties->setProperty("Latency.Proxy", "ping:tcp -p 10000"); // - // Now, load the configuration file if present. + // Now, load the configuration file if present. Under WinCE we + // use "config.txt" since it can be edited with pocket word. // try { - properties->load("config"); + properties->load("config.txt"); } catch(const Ice::FileException&) { } + communicator = Ice::initializeWithProperties(__argc, __argv, properties); - const char* proxyProperty = "Latency.Ping"; + const char* proxyProperty = "Latency.Proxy"; string proxy = properties->getProperty(proxyProperty); - // - // We use a fixed string so that the demo will run without a - // configuration file. - // PingPrx ping = PingPrx::checkedCast(communicator->stringToProxy(proxy)); if(!ping) { |