diff options
Diffstat (limited to 'TAO/tests/DLL_ORB')
-rw-r--r-- | TAO/tests/DLL_ORB/DLL_ORB.mpc | 1 | ||||
-rw-r--r-- | TAO/tests/DLL_ORB/Test_Client_Module.cpp | 5 | ||||
-rw-r--r-- | TAO/tests/DLL_ORB/Test_Client_Module.h | 2 | ||||
-rw-r--r-- | TAO/tests/DLL_ORB/Test_Server_Module.cpp | 7 | ||||
-rw-r--r-- | TAO/tests/DLL_ORB/Test_Server_Module.h | 2 | ||||
-rw-r--r-- | TAO/tests/DLL_ORB/client.cpp | 2 | ||||
-rw-r--r-- | TAO/tests/DLL_ORB/server.cpp | 2 |
7 files changed, 12 insertions, 9 deletions
diff --git a/TAO/tests/DLL_ORB/DLL_ORB.mpc b/TAO/tests/DLL_ORB/DLL_ORB.mpc index 34ed08c9359..1bc4173271c 100644 --- a/TAO/tests/DLL_ORB/DLL_ORB.mpc +++ b/TAO/tests/DLL_ORB/DLL_ORB.mpc @@ -33,6 +33,7 @@ project(*Server) : taoexe { } project(*Client): taoexe { + exename = client IDL_Files { } diff --git a/TAO/tests/DLL_ORB/Test_Client_Module.cpp b/TAO/tests/DLL_ORB/Test_Client_Module.cpp index f6cd461b12e..0408425d5b4 100644 --- a/TAO/tests/DLL_ORB/Test_Client_Module.cpp +++ b/TAO/tests/DLL_ORB/Test_Client_Module.cpp @@ -5,6 +5,7 @@ #include "tao/StringSeqC.h" #include "ace/Get_Opt.h" +#include "ace/Argv_Type_Converter.h" ACE_RCSID (DLL_ORB, Test_Client_Module, @@ -16,7 +17,7 @@ const char *ior = "file://test.ior"; int parse_args (int argc, char *argv[]) { - ACE_Get_Opt get_opts (argc, argv, "k:"); + ACE_Get_Arg_Opt<char> get_opts (argc, argv, "k:"); int c; while ((c = get_opts ()) != -1) @@ -39,7 +40,7 @@ parse_args (int argc, char *argv[]) int -Test_Client_Module::init (int argc, ACE_TCHAR *argv[]) +Test_Client_Module::init (int argc, char *argv[]) { // ----------------------------------------------------------------- // Pre-ORB initialization steps necessary for proper DLL ORB diff --git a/TAO/tests/DLL_ORB/Test_Client_Module.h b/TAO/tests/DLL_ORB/Test_Client_Module.h index bd649692068..38f1638da5b 100644 --- a/TAO/tests/DLL_ORB/Test_Client_Module.h +++ b/TAO/tests/DLL_ORB/Test_Client_Module.h @@ -40,7 +40,7 @@ class Test_Client_Module_Export Test_Client_Module : public ACE_Task_Base public: /// Initializes object when dynamic linking occurs. - virtual int init (int argc, ACE_TCHAR *argv[]); + virtual int init (int argc, char *argv[]); /// Terminates object when dynamic unlinking occurs. virtual int fini (void); diff --git a/TAO/tests/DLL_ORB/Test_Server_Module.cpp b/TAO/tests/DLL_ORB/Test_Server_Module.cpp index 2bb64be76df..bb590b53b1e 100644 --- a/TAO/tests/DLL_ORB/Test_Server_Module.cpp +++ b/TAO/tests/DLL_ORB/Test_Server_Module.cpp @@ -11,6 +11,7 @@ ACE_RCSID (DLL_ORB, "$Id$") #include "ace/Get_Opt.h" +#include "ace/Argv_Type_Converter.h" const char *ior_file = "test.ior"; @@ -18,7 +19,7 @@ const char *ior_file = "test.ior"; int parse_args (int argc, char *argv[]) { - ACE_Get_Opt get_opts (argc, argv, "o:"); + ACE_Get_Arg_Opt<char> get_opts (argc, argv, "o:"); int c; while ((c = get_opts ()) != -1) @@ -39,7 +40,7 @@ parse_args (int argc, char *argv[]) } int -Test_Server_Module::init (int argc, ACE_TCHAR *argv[]) +Test_Server_Module::init (int argc, char *argv[]) { // ----------------------------------------------------------------- // Pre-ORB initialization steps necessary for proper DLL ORB @@ -131,7 +132,7 @@ Test_Server_Module::init (int argc, ACE_TCHAR *argv[]) ior.in ())); // Write IOR to a file. - FILE *output_file= ACE_OS::fopen (ior_file, "w"); + FILE *output_file= ACE_OS::fopen (ior_file, ACE_TEXT("w")); if (output_file == 0) ACE_ERROR_RETURN ((LM_ERROR, "Cannot open output file <%s> for writing " diff --git a/TAO/tests/DLL_ORB/Test_Server_Module.h b/TAO/tests/DLL_ORB/Test_Server_Module.h index f525f46716b..d1faee6c35d 100644 --- a/TAO/tests/DLL_ORB/Test_Server_Module.h +++ b/TAO/tests/DLL_ORB/Test_Server_Module.h @@ -40,7 +40,7 @@ class Test_Server_Module_Export Test_Server_Module : public ACE_Task_Base public: /// Initializes object when dynamic linking occurs. - virtual int init (int argc, ACE_TCHAR *argv[]); + virtual int init (int argc, char *argv[]); /// Terminates object when dynamic unlinking occurs. virtual int fini (void); diff --git a/TAO/tests/DLL_ORB/client.cpp b/TAO/tests/DLL_ORB/client.cpp index 3ba5a6ded57..029f6520d55 100644 --- a/TAO/tests/DLL_ORB/client.cpp +++ b/TAO/tests/DLL_ORB/client.cpp @@ -15,7 +15,7 @@ #include "ace/Thread_Manager.h" int -main (int, char *[]) +ACE_TMAIN (int, ACE_TCHAR *[]) { // Process a Service Configurator directive that will cause the test // client module to be dynamically loaded. diff --git a/TAO/tests/DLL_ORB/server.cpp b/TAO/tests/DLL_ORB/server.cpp index c54ec7f983a..bcdd71b484d 100644 --- a/TAO/tests/DLL_ORB/server.cpp +++ b/TAO/tests/DLL_ORB/server.cpp @@ -15,7 +15,7 @@ #include "ace/Thread_Manager.h" int -main (int, char *[]) +ACE_TMAIN (int, ACE_TCHAR *[]) { // Process a Service Configurator directive that will cause the test // server module to be dynamically loaded. |