summaryrefslogtreecommitdiff
path: root/TAO/examples/POA/Loader/Servant_Activator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/POA/Loader/Servant_Activator.cpp')
-rw-r--r--TAO/examples/POA/Loader/Servant_Activator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/TAO/examples/POA/Loader/Servant_Activator.cpp b/TAO/examples/POA/Loader/Servant_Activator.cpp
index 72bf969c798..077b016cab6 100644
--- a/TAO/examples/POA/Loader/Servant_Activator.cpp
+++ b/TAO/examples/POA/Loader/Servant_Activator.cpp
@@ -36,7 +36,7 @@ ServantActivator::ServantActivator (CORBA::ORB_ptr orb,
: orb_ (CORBA::ORB::_duplicate (orb))
{
// The dll is opened using the dllname passed.
- if (this->dll_.open (dllname) == -1)
+ if (this->dll_.open (ACE_TEXT_TO_TCHAR_IN(dllname)) == -1)
ACE_ERROR ((LM_ERROR,
"%p\n",
this->dll_.error ()));
@@ -46,7 +46,7 @@ ServantActivator::ServantActivator (CORBA::ORB_ptr orb,
// Cannot go from void* to function pointer directly. Cast the void*
// to long first.
- void *symbol = this->dll_.symbol (factory_function);
+ void *symbol = this->dll_.symbol (ACE_TEXT_TO_TCHAR_IN(factory_function));
long function = reinterpret_cast<long> (symbol);
servant_supplier_ =
@@ -54,7 +54,7 @@ ServantActivator::ServantActivator (CORBA::ORB_ptr orb,
// Obtain the symbol for the function which will destroy the
// servant.
- symbol = this->dll_.symbol (garbage_collection_function);
+ symbol = this->dll_.symbol (ACE_TEXT_TO_TCHAR_IN(garbage_collection_function));
function = reinterpret_cast<long> (symbol);
servant_garbage_collector_ =
reinterpret_cast<SERVANT_GARBAGE_COLLECTOR> (function);