summaryrefslogtreecommitdiff
path: root/TAO/tests/CodeSets/simple/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/CodeSets/simple/client.cpp')
-rw-r--r--TAO/tests/CodeSets/simple/client.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/TAO/tests/CodeSets/simple/client.cpp b/TAO/tests/CodeSets/simple/client.cpp
index edf6a3ab091..5042f8ce86f 100644
--- a/TAO/tests/CodeSets/simple/client.cpp
+++ b/TAO/tests/CodeSets/simple/client.cpp
@@ -25,6 +25,7 @@
#include "ace/OS_NS_string.h"
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
wchar_t *
make_wstring (const char *str)
@@ -50,16 +51,18 @@ make_wstring (const char *str)
// ------------------------------------------------------------
// Client
// ------------------------------------------------------------
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
char buf[1000];
int error_count = 0;
ACE_TRY_NEW_ENV
{
// Init the orb
- CORBA::ORB_var orb= CORBA::ORB_init (argc,
- argv,
+ CORBA::ORB_var orb= CORBA::ORB_init (convert.get_argc(),
+ convert.get_ASCII_argv(),
""
ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
@@ -71,7 +74,7 @@ int main (int argc, char *argv[])
}
else
{
- ACE_OS::strcpy (buf, argv[1]);
+ ACE_OS::strcpy (buf, ACE_TEXT_TO_CHAR_IN(argv[1]));
}
// The first arg should be the IOR
@@ -118,8 +121,9 @@ int main (int argc, char *argv[])
{
++error_count;
}
+
#if defined (ACE_HAS_WCHAR)
- wchar_t *wide_string = ACE_OS::strdup(ACE_TEXT_ALWAYS_WCHAR ("Wide String"));
+ wchar_t *wide_string = ACE_OS::strdup(ACE_TEXT_TO_WCHAR_IN ("Wide String"));
wchar_t *wide_reply = server->op2 (wide_string);
ACE_DEBUG ((LM_DEBUG,
"sent %W, got %W\n", wide_string, wide_reply));