summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-10-09 01:27:17 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-10-09 01:27:17 +0000
commitb38995a89d498538467a340bc4123e856718f57e (patch)
tree4353f4d950f95e00c784966d064cc3fdbf6b111b /examples
parent2c28ac2a892747619061c89b716093e98354265c (diff)
downloadATCD-b38995a89d498538467a340bc4123e856718f57e.tar.gz
ChangeLogTag:Mon Oct 8 20:19:44 2001 Nanbor Wang <nanbor@cs.wustl.edu>
Diffstat (limited to 'examples')
-rw-r--r--examples/DLL/test_dll.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/examples/DLL/test_dll.cpp b/examples/DLL/test_dll.cpp
index 6ac89a349dc..a0073158a2e 100644
--- a/examples/DLL/test_dll.cpp
+++ b/examples/DLL/test_dll.cpp
@@ -20,12 +20,12 @@ main (int argc, char *argv[])
ACE_DLL dll;
- int retval = dll.open ("./" ACE_DLL_PREFIX "Today" ACE_DLL_SUFFIX);
+ int retval = dll.open ("./" ACE_DLL_PREFIX "Today");
if (retval != 0)
ACE_ERROR_RETURN ((LM_ERROR,
- "%s",
- dll.error ()),
+ "%p",
+ "dll.open"),
-1);
Magazine_Creator mc;
@@ -33,8 +33,8 @@ main (int argc, char *argv[])
if (mc == 0)
ACE_ERROR_RETURN ((LM_ERROR,
- "%s",
- dll.error ()),
+ "%p",
+ "dll.symbol"),
-1);
{
auto_ptr <Magazine> magazine (mc ());
@@ -46,20 +46,20 @@ main (int argc, char *argv[])
// The other library is now loaded on demand.
- retval = dll.open ("./" ACE_DLL_PREFIX "Newsweek" ACE_DLL_SUFFIX);
+ retval = dll.open ("./" ACE_DLL_PREFIX "Newsweek");
if (retval != 0)
ACE_ERROR_RETURN ((LM_ERROR,
- "%s",
- dll.error ()),
+ "%p",
+ "dll.open"),
-1);
mc = (Magazine_Creator) dll.symbol ("create_magazine");
if (mc == 0)
ACE_ERROR_RETURN ((LM_ERROR,
- "%s",
- dll.error ()),
+ "%p",
+ "dll.symbol"),
-1);
{
auto_ptr <Magazine> magazine (mc ());