summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Notify/Discarding/Structured_Supplier.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/Notify/Discarding/Structured_Supplier.cpp')
-rw-r--r--TAO/orbsvcs/tests/Notify/Discarding/Structured_Supplier.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/TAO/orbsvcs/tests/Notify/Discarding/Structured_Supplier.cpp b/TAO/orbsvcs/tests/Notify/Discarding/Structured_Supplier.cpp
index 9fee28c5c34..5b1aee259d2 100644
--- a/TAO/orbsvcs/tests/Notify/Discarding/Structured_Supplier.cpp
+++ b/TAO/orbsvcs/tests/Notify/Discarding/Structured_Supplier.cpp
@@ -5,6 +5,7 @@
// ******************************************************************
#include "ace/Get_Opt.h"
+#include "ace/Argv_Type_Converter.h"
#include "ace/Auto_Ptr.h"
#include "tao/ORB_Core.h"
@@ -87,7 +88,7 @@ public:
int
Supplier_Client::parse_args (int argc, char *argv[])
{
- ACE_Get_Opt get_opts (argc, argv, "o:e:d");
+ ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:e:d");
int c;
while ((c = get_opts ()) != -1)
@@ -188,14 +189,16 @@ create_suppliers (CosNotifyChannelAdmin::SupplierAdmin_ptr admin,
// Main Section
// ******************************************************************
-int main (int argc, char* argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR* argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
+
int status = 0;
ACE_Auto_Ptr< sig_i > sig_impl;
ACE_TRY_NEW_ENV
{
Supplier_Client client;
- status = client.init (argc, argv ACE_ENV_ARG_PARAMETER);
+ status = client.init (convert.get_argc(), convert.get_ASCII_argv() ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (status == 0)
@@ -224,7 +227,7 @@ int main (int argc, char* argv[])
client.orb ()->object_to_string (sig.in () ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
- FILE *output_file= ACE_OS::fopen (ior_output_file, "w");
+ FILE *output_file= ACE_OS::fopen (ior_output_file, ACE_TEXT("w"));
ACE_ASSERT (output_file != 0);
ACE_OS::fprintf (output_file, "%s", ior.in ());
ACE_OS::fclose (output_file);