summaryrefslogtreecommitdiff
path: root/TAO/examples/POA/On_Demand_Loading/Servant_Manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/POA/On_Demand_Loading/Servant_Manager.cpp')
-rw-r--r--TAO/examples/POA/On_Demand_Loading/Servant_Manager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/TAO/examples/POA/On_Demand_Loading/Servant_Manager.cpp b/TAO/examples/POA/On_Demand_Loading/Servant_Manager.cpp
index 8564219f925..118c807c2c6 100644
--- a/TAO/examples/POA/On_Demand_Loading/Servant_Manager.cpp
+++ b/TAO/examples/POA/On_Demand_Loading/Servant_Manager.cpp
@@ -69,7 +69,7 @@ ServantManager_i::obtain_servant (const char *str,
"Bind failed"),
0);
// Now that the dll name is available we open the dll.
- if (dll->open (dllname_.c_str ()) == -1)
+ if (dll->open (ACE_TEXT_TO_TCHAR_IN(dllname_.c_str ())) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
"%p",
dll->error ()),
@@ -80,7 +80,7 @@ ServantManager_i::obtain_servant (const char *str,
// Cannot go from void* to function pointer directly. Cast the void*
// to long first.
- void *symbol = dll->symbol (create_symbol_.c_str ());
+ void *symbol = dll->symbol (ACE_TEXT_TO_TCHAR_IN(create_symbol_.c_str ()));
long function = reinterpret_cast<long> (symbol);
SERVANT_FACTORY servant_creator =