diff options
author | Jose <jose@zeroc.com> | 2014-05-02 19:56:38 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2014-05-02 19:56:38 +0200 |
commit | 1161c5817059464ab511632c0ce5d14593ced1a3 (patch) | |
tree | 51bbcdf2a4ea43c430312157350bb4271bc3f40d /cpp/demo/Ice/converter/ClientWithConverter.cpp | |
parent | Update .gitignore files (diff) | |
download | ice-1161c5817059464ab511632c0ce5d14593ced1a3.tar.bz2 ice-1161c5817059464ab511632c0ce5d14593ced1a3.tar.xz ice-1161c5817059464ab511632c0ce5d14593ced1a3.zip |
ICE-4851 - Use wstrings for input and output data that contain non-ASCII characters?
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; +} |