summaryrefslogtreecommitdiff
path: root/examples/C++NPv1/Iterative_Logging_Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/C++NPv1/Iterative_Logging_Server.cpp')
-rw-r--r--examples/C++NPv1/Iterative_Logging_Server.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/C++NPv1/Iterative_Logging_Server.cpp b/examples/C++NPv1/Iterative_Logging_Server.cpp
index f4c28f08da7..ca8a7478064 100644
--- a/examples/C++NPv1/Iterative_Logging_Server.cpp
+++ b/examples/C++NPv1/Iterative_Logging_Server.cpp
@@ -5,13 +5,15 @@
*/
#include "ace/Log_Msg.h"
+#include "ace/Argv_Type_Converter.h"
#include "Iterative_Logging_Server.h"
-int main (int argc, char *argv[])
+int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
{
+ ACE_Argv_Type_Converter convert (argc, argv);
Iterative_Logging_Server server;
- if (server.run (argc, argv) == -1)
+ if (server.run (convert.get_argc(), convert.get_ASCII_argv()) == -1)
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "server.run()"), 1);
return 0;
}