diff options
Diffstat (limited to 'cpp/demo/Ice/converter/ClientWithConverter.cpp')
-rw-r--r-- | cpp/demo/Ice/converter/ClientWithConverter.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/cpp/demo/Ice/converter/ClientWithConverter.cpp b/cpp/demo/Ice/converter/ClientWithConverter.cpp new file mode 100644 index 00000000000..567bea9f203 --- /dev/null +++ b/cpp/demo/Ice/converter/ClientWithConverter.cpp @@ -0,0 +1,36 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#include <Client.h> +#include <StringConverterI.h> + +using namespace std; +using namespace Demo; + +int +main(int argc, char* argv[]) +{ + int status = EXIT_SUCCESS; + try + { + // + // Set the process string converter and then initialize the + // aplication. + // + IceUtil::setProcessStringConverter(new StringConverterI()); + Client app; + status = app.main(argc, argv, "config.client"); + } + catch(const Ice::Exception& ex) + { + cerr << ex << endl; + status = EXIT_FAILURE; + } + return status; +} |