diff options
author | Matthew Newhook <matthew@zeroc.com> | 2005-08-06 04:01:11 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2005-08-06 04:01:11 +0000 |
commit | a8038f080bc2b991d854f64f2a074975c2463d37 (patch) | |
tree | ffcd7f03922d5a8f8620900e46ba4e4596e235b9 /cppe/demo/IceE/MFC/client/HelloClient.cpp | |
parent | Fixed slice file install (diff) | |
download | ice-a8038f080bc2b991d854f64f2a074975c2463d37.tar.bz2 ice-a8038f080bc2b991d854f64f2a074975c2463d37.tar.xz ice-a8038f080bc2b991d854f64f2a074975c2463d37.zip |
clean up MFC demo. Fix bug with the status bar.
Diffstat (limited to 'cppe/demo/IceE/MFC/client/HelloClient.cpp')
-rw-r--r-- | cppe/demo/IceE/MFC/client/HelloClient.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/cppe/demo/IceE/MFC/client/HelloClient.cpp b/cppe/demo/IceE/MFC/client/HelloClient.cpp index ab8c1da0143..7891a1c635c 100644 --- a/cppe/demo/IceE/MFC/client/HelloClient.cpp +++ b/cppe/demo/IceE/MFC/client/HelloClient.cpp @@ -47,8 +47,21 @@ CHelloClientApp::InitInstance() {
int argc = 0;
Ice::PropertiesPtr 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"); - //properties->load("config");
+ // + // Now, load the configuration file if present. + // + try + { + properties->load("config"); + } + catch(const Ice::FileException&) + { + } communicator = Ice::initializeWithProperties(argc, 0, properties);
}
catch(const Ice::Exception& ex)
|