summaryrefslogtreecommitdiff
path: root/TAO/examples/Event_Comm
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Event_Comm')
-rw-r--r--TAO/examples/Event_Comm/consumer.cpp6
-rw-r--r--TAO/examples/Event_Comm/notifier.cpp6
-rw-r--r--TAO/examples/Event_Comm/supplier.cpp6
3 files changed, 12 insertions, 6 deletions
diff --git a/TAO/examples/Event_Comm/consumer.cpp b/TAO/examples/Event_Comm/consumer.cpp
index 55b157feaf0..52af5c5c731 100644
--- a/TAO/examples/Event_Comm/consumer.cpp
+++ b/TAO/examples/Event_Comm/consumer.cpp
@@ -2,6 +2,7 @@
#include "Consumer_Handler.h"
#include "Consumer_Input_Handler.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Consumer, consumer, "$Id$")
@@ -110,12 +111,13 @@ Consumer::initialize (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
// Initialize the supplier and consumer object references.
Consumer consumer;
- if (consumer.initialize (argc, argv) == -1)
+ if (consumer.initialize (convert.get_argc(), convert.get_ASCII_argv()) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
"%p\n",
"Consumer init failed\n"),
diff --git a/TAO/examples/Event_Comm/notifier.cpp b/TAO/examples/Event_Comm/notifier.cpp
index 8e348b1df5b..d9d365d8d97 100644
--- a/TAO/examples/Event_Comm/notifier.cpp
+++ b/TAO/examples/Event_Comm/notifier.cpp
@@ -2,6 +2,7 @@
#include "Notifier_Server.h"
#include "notifier.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Notifier, notifier, "$Id$")
@@ -61,10 +62,11 @@ Notifier::~Notifier (void)
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
// Initialize server daemon.
- Notifier notifier (argc, argv);
+ Notifier notifier (convert.get_argc(), convert.get_ASCII_argv());
// Loop forever handling events.
notifier.run ();
diff --git a/TAO/examples/Event_Comm/supplier.cpp b/TAO/examples/Event_Comm/supplier.cpp
index c44b6123b8d..3e665ee8bc8 100644
--- a/TAO/examples/Event_Comm/supplier.cpp
+++ b/TAO/examples/Event_Comm/supplier.cpp
@@ -3,6 +3,7 @@
#include "Notifier_Handler.h"
#include "Supplier_Input_Handler.h"
#include "supplier.h"
+#include "ace/Argv_Type_Converter.h"
ACE_RCSID(Supplier, supplier, "$Id$")
Supplier::Supplier (void)
@@ -67,12 +68,13 @@ Supplier::init (int argc, char *argv[])
}
int
-main (int argc, char *argv[])
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
// Initialize server daemon.
Supplier supplier;
- if (supplier.init (argc, argv) == -1)
+ if (supplier.init (convert.get_argc(), convert.get_ASCII_argv()) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
"%p\n",
"supplier init failed"),