diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-07-01 16:18:56 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-07-01 16:18:56 +0000 |
commit | 6803d545979635f9fc0fb817b1e0841e69a96472 (patch) | |
tree | 74eb2aa0844bc54028da8dc9704fb6eac45322c0 /examples/DLL | |
parent | c0cc5f64b0e435e8603e6a47161d166e4140a49d (diff) | |
download | ATCD-TAO-1_1_18.tar.gz |
This commit was manufactured by cvs2svn to create tag 'TAO-1_1_18'.TAO-1_1_18
Diffstat (limited to 'examples/DLL')
-rw-r--r-- | examples/DLL/Dll.dsw | 53 | ||||
-rw-r--r-- | examples/DLL/Magazine.h | 42 | ||||
-rw-r--r-- | examples/DLL/Main.dsp | 92 | ||||
-rw-r--r-- | examples/DLL/Makefile | 43 | ||||
-rw-r--r-- | examples/DLL/Makefile.Newsweek | 43 | ||||
-rw-r--r-- | examples/DLL/Makefile.Today | 47 | ||||
-rw-r--r-- | examples/DLL/Newsweek.cpp | 30 | ||||
-rw-r--r-- | examples/DLL/Newsweek.dsp | 109 | ||||
-rw-r--r-- | examples/DLL/Newsweek.h | 45 | ||||
-rw-r--r-- | examples/DLL/README | 47 | ||||
-rw-r--r-- | examples/DLL/Today.cpp | 30 | ||||
-rw-r--r-- | examples/DLL/Today.dsp | 109 | ||||
-rw-r--r-- | examples/DLL/Today.h | 46 | ||||
-rw-r--r-- | examples/DLL/test_dll.cpp | 79 |
14 files changed, 0 insertions, 815 deletions
diff --git a/examples/DLL/Dll.dsw b/examples/DLL/Dll.dsw deleted file mode 100644 index 3a577e31e68..00000000000 --- a/examples/DLL/Dll.dsw +++ /dev/null @@ -1,53 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 5.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "Main"=.\Main.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "Newsweek"=.\Newsweek.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "Today"=.\Today.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/examples/DLL/Magazine.h b/examples/DLL/Magazine.h deleted file mode 100644 index 4810fb73baa..00000000000 --- a/examples/DLL/Magazine.h +++ /dev/null @@ -1,42 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -// =========================================================== -// -// -// = LIBRARY -// ACE_wrappers/examples/DLL -// -// = FILENAME -// Magazine.h -// -// = DESCRIPTION -// Abstract class whose methods are implemented by the derived -// classes. -// -// = AUTHOR -// Kirthika Parameswaran <kirthika@cs.wustl.edu> -// -// =========================================================== - -#ifndef MAGAZINE_H -#define MAGAZINE_H - -class Magazine -{ - // = TITLE - // This is an abstract class used in the DLL example. - // - // = DESCRIPTION - // This class simply is an inetrface which the derived classes - // will exploit. -public: - - virtual ~Magazine (void) {}; - // No-op vitrual destructor. - - virtual void title (void) = 0; - // This method gives the title of the magazine. -}; - -#endif /* MAGAZINE_H */ diff --git a/examples/DLL/Main.dsp b/examples/DLL/Main.dsp deleted file mode 100644 index 043a50263f5..00000000000 --- a/examples/DLL/Main.dsp +++ /dev/null @@ -1,92 +0,0 @@ -# Microsoft Developer Studio Project File - Name="Main" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=Main - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "Main.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "Main.mak" CFG="Main - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "Main - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Main - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "Main - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\.." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c
-# SUBTRACT CPP /YX
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 ace.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\ace"
-
-!ELSEIF "$(CFG)" == "Main - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\.." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c
-# SUBTRACT CPP /YX
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 aced.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\ace"
-
-!ENDIF
-
-# Begin Target
-
-# Name "Main - Win32 Release"
-# Name "Main - Win32 Debug"
-# Begin Source File
-
-SOURCE=.\test_dll.cpp
-# End Source File
-# End Target
-# End Project
diff --git a/examples/DLL/Makefile b/examples/DLL/Makefile deleted file mode 100644 index 42b72709abd..00000000000 --- a/examples/DLL/Makefile +++ /dev/null @@ -1,43 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Makefile for the DLL example -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -BIN = test_dll - -FILES = test_dll - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -TODAY: - make -f Makefile.Today - -NEWSWEEK: - make -f Makefile.Newsweek - -all: TODAY NEWSWEEK $(BIN) - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. diff --git a/examples/DLL/Makefile.Newsweek b/examples/DLL/Makefile.Newsweek deleted file mode 100644 index 167610a252c..00000000000 --- a/examples/DLL/Makefile.Newsweek +++ /dev/null @@ -1,43 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Makefile for the Newsweek library in the DLL example -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - - - -SHLIB = libNewsweek.$(SOEXT) - -FILES = Newsweek - -LSRC = $(addsuffix .cpp,$(FILES)) - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - - diff --git a/examples/DLL/Makefile.Today b/examples/DLL/Makefile.Today deleted file mode 100644 index c1ffa8a73be..00000000000 --- a/examples/DLL/Makefile.Today +++ /dev/null @@ -1,47 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Makefile for the Today library in the DLL example -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - - - -SHLIB = libToday.$(SOEXT) - - -FILES = Today - - - -LSRC = $(addsuffix .cpp,$(FILES)) - -VLDLIBS = $(LDLIBS:%=%$(VAR)) - - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. - - - diff --git a/examples/DLL/Newsweek.cpp b/examples/DLL/Newsweek.cpp deleted file mode 100644 index a8ef349ec07..00000000000 --- a/examples/DLL/Newsweek.cpp +++ /dev/null @@ -1,30 +0,0 @@ -// $Id$ - -#define ACE_BUILD_SVC_DLL - -#include "Newsweek.h" -#include "ace/Log_Msg.h" - -// Implementation of the abstract class method which describes -// the magazine. - -void Newsweek::title (void) -{ - ACE_DEBUG ((LM_DEBUG, - "Newsweek: Vol 23 Dec87\n")); -} - -// Returns the Newsweek class pointer. -// The ACE_BUILD_SVC_DLL and ACE_Svc_Export directives are necessary as take care -// of exporting the function for Win32 platforms. -extern "C" ACE_Svc_Export Magazine *create_magazine (void); - -Magazine * -create_magazine (void) -{ - Magazine *mag; - ACE_NEW_RETURN (mag, - Newsweek, - 0); - return mag; -} diff --git a/examples/DLL/Newsweek.dsp b/examples/DLL/Newsweek.dsp deleted file mode 100644 index 6fc76d3a84d..00000000000 --- a/examples/DLL/Newsweek.dsp +++ /dev/null @@ -1,109 +0,0 @@ -# Microsoft Developer Studio Project File - Name="Newsweek" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
-
-CFG=Newsweek - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "Newsweek.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "Newsweek.mak" CFG="Newsweek - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "Newsweek - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE "Newsweek - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-MTL=midl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "Newsweek - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /GX /O2 /I "../../" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /FD /c
-# SUBTRACT CPP /YX
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
-# ADD LINK32 ace.lib /nologo /subsystem:windows /dll /machine:I386 /libpath:"..\..\ace"
-
-!ELSEIF "$(CFG)" == "Newsweek - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\\" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /FD /LD /c
-# SUBTRACT CPP /YX
-# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
-# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 aced.lib /nologo /subsystem:windows /dll /debug /machine:I386 /out:"Newsweekd.dll" /pdbtype:sept /libpath:"..\..\ace"
-
-!ENDIF
-
-# Begin Target
-
-# Name "Newsweek - Win32 Release"
-# Name "Newsweek - Win32 Debug"
-# Begin Group "Header files"
-
-# PROP Default_Filter ""
-# Begin Source File
-
-SOURCE=.\Newsweek.h
-# End Source File
-# End Group
-# Begin Group "Source files"
-
-# PROP Default_Filter ""
-# Begin Source File
-
-SOURCE=.\Newsweek.cpp
-# End Source File
-# End Group
-# End Target
-# End Project
diff --git a/examples/DLL/Newsweek.h b/examples/DLL/Newsweek.h deleted file mode 100644 index 65f2a36f5d6..00000000000 --- a/examples/DLL/Newsweek.h +++ /dev/null @@ -1,45 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -// =========================================================== -// -// = LIBRARY -// ACE_wrappers/examples/DLL -// -// = FILENAME -// Newsweek.h -// -// = DESCRIPTION -// This is a derived class from Magazine which is a magazine -// pertaining to news and information. -// -// = AUTHOR -// Kirthika Parameswaran <kirthika@cs.wustl.edu> -// -// =========================================================== - -#ifndef NEWSWEEK_H -#define NEWSWEEK_H - -#include "ace/OS.h" -#include "Magazine.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -class Newsweek : public Magazine -{ - //= TITLE - // This is an derived class of Magazine. - // - //= DESCRIPTION - // Polymoriphism is exploited and an object pointer - // of Magazine is bound to the Newsweek object at runtime. -public: - - void title (void); - // This is the abstract class method which describes the magazine. -}; - -# endif /* NEWSWEEK_H */ diff --git a/examples/DLL/README b/examples/DLL/README deleted file mode 100644 index 716b2c2b628..00000000000 --- a/examples/DLL/README +++ /dev/null @@ -1,47 +0,0 @@ -$Id$ - -DLL Test Example ----------------- - -This example deals with dynamically opening objects and accessing -methods from it. - -First, the pointer to the object is obtained by accessing symbol -of the function which can get the object pointer. Then the methods -in that library object is accessed. - -Here, the Magazine class is an abstract class with various magazine -objects like Newsweek and Today deriving form it. The libraries are -dynamically linked on demand. Thus, they can be changed on the fly -and accessed with its new changes. - -The ACE_DLL class used in this example is an helper class for -performing various operations on the library object. - -Compilation and Execution: -------------------------- - -1. On POSIX/UNIX platforms: - - First, build the test program, which you can do on UNIX as follows: - - % make - - Then run the test program: - - % test_dll - - to exercise the test. - - -2. On NT or any Win32 platform: - - Load Dll.dsw which contains Test_dll.dsp, Today.dsp and Newsweek.dsp. - - Build each dsp such that you build Test_dll.dsp last. - This is because the test_dll.exe will be using Today.dll and Newsweek.dll. - - Execute test_dll - - and watch it run! - diff --git a/examples/DLL/Today.cpp b/examples/DLL/Today.cpp deleted file mode 100644 index 39e81489cc8..00000000000 --- a/examples/DLL/Today.cpp +++ /dev/null @@ -1,30 +0,0 @@ -// $Id$ - -#define ACE_BUILD_SVC_DLL - -#include "Today.h" -#include "ace/Log_Msg.h" - -// Implementation of the abstract class method which describes the -// magazine. - -void -Today::title (void) -{ - ACE_DEBUG ((LM_DEBUG, - "Today: Information Technology Special Nov98\n")); -} - -// Returns the pointer to the Today class. -// The ACE_BUILD_SVC_DLL and ACE_Svc_Export directives are necessary as take care -// of exporting the function for Win32 platforms. -extern "C" ACE_Svc_Export Magazine *create_magazine (void); - -Magazine *create_magazine (void) -{ - Magazine *mag; - ACE_NEW_RETURN (mag, - Today, - 0); - return mag; -} diff --git a/examples/DLL/Today.dsp b/examples/DLL/Today.dsp deleted file mode 100644 index b803a7494cd..00000000000 --- a/examples/DLL/Today.dsp +++ /dev/null @@ -1,109 +0,0 @@ -# Microsoft Developer Studio Project File - Name="Today" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
-
-CFG=Today - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "Today.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "Today.mak" CFG="Today - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "Today - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE "Today - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-MTL=midl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "Today - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /GR /GX /I "..\..\\" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /FD /c
-# SUBTRACT CPP /YX
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
-# ADD LINK32 ace.lib /nologo /subsystem:windows /dll /machine:I386 /libpath:"..\..\ace"
-
-!ELSEIF "$(CFG)" == "Today - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
-# ADD CPP /nologo /MDd /W3 /GR /GX /I "..\..\\" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /FD /c
-# SUBTRACT CPP /YX
-# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
-# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 aced.lib /nologo /subsystem:windows /dll /debug /machine:I386 /out:"Todayd.dll" /pdbtype:sept /libpath:"..\..\ace"
-
-!ENDIF
-
-# Begin Target
-
-# Name "Today - Win32 Release"
-# Name "Today - Win32 Debug"
-# Begin Group "Header files"
-
-# PROP Default_Filter ""
-# Begin Source File
-
-SOURCE=.\Today.h
-# End Source File
-# End Group
-# Begin Group "Source files"
-
-# PROP Default_Filter ""
-# Begin Source File
-
-SOURCE=.\Today.cpp
-# End Source File
-# End Group
-# End Target
-# End Project
diff --git a/examples/DLL/Today.h b/examples/DLL/Today.h deleted file mode 100644 index 3e27b63b1c6..00000000000 --- a/examples/DLL/Today.h +++ /dev/null @@ -1,46 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -// =========================================================== -// -// = LIBRARY -// ACE_wrappers/examples/DLL -// -// = FILENAME -// Today.h -// -// = DESCRIPTION -// This class denotes the Today magazine which is derived from -// Magazine. -// -// = AUTHOR -// Kirthika Parameswaran <kirthika@cs.wustl.edu> -// -// =========================================================== - -#ifndef TODAY_H -#define TODAY_H - -#include "ace/OS.h" -#include "Magazine.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -class Today : public Magazine -{ - // = TITLE - // This is an derived class of Magazine. - // - // = DESCRIPTION - // Polymoriphism is exploited and an object pointer of Magazine - // is bound to the Today object at runtime. -public: - - void title (void); - // The virtual abstract class method which returns the title of the - // magazine. -}; - -#endif /* TODAY_H */ diff --git a/examples/DLL/test_dll.cpp b/examples/DLL/test_dll.cpp deleted file mode 100644 index 6ac89a349dc..00000000000 --- a/examples/DLL/test_dll.cpp +++ /dev/null @@ -1,79 +0,0 @@ -// $Id$ - -// This program tests out how the various objects can be loaded -// dynamically and method calls made on them. - -#include "Magazine.h" -#include "ace/DLL.h" -#include "ace/Auto_Ptr.h" -#include "ace/Log_Msg.h" - -ACE_RCSID(DLL, test_dll, "$Id$") - -typedef Magazine* (*Magazine_Creator) (void); - -int -main (int argc, char *argv[]) -{ - ACE_UNUSED_ARG (argc); - ACE_UNUSED_ARG (argv); - - ACE_DLL dll; - - int retval = dll.open ("./" ACE_DLL_PREFIX "Today" ACE_DLL_SUFFIX); - - if (retval != 0) - ACE_ERROR_RETURN ((LM_ERROR, - "%s", - dll.error ()), - -1); - Magazine_Creator mc; - - mc = (Magazine_Creator) dll.symbol ("create_magazine"); - - if (mc == 0) - ACE_ERROR_RETURN ((LM_ERROR, - "%s", - dll.error ()), - -1); - { - auto_ptr <Magazine> magazine (mc ()); - - magazine->title (); - } - - dll.close (); - - // The other library is now loaded on demand. - - retval = dll.open ("./" ACE_DLL_PREFIX "Newsweek" ACE_DLL_SUFFIX); - - if (retval != 0) - ACE_ERROR_RETURN ((LM_ERROR, - "%s", - dll.error ()), - -1); - - mc = (Magazine_Creator) dll.symbol ("create_magazine"); - - if (mc == 0) - ACE_ERROR_RETURN ((LM_ERROR, - "%s", - dll.error ()), - -1); - { - auto_ptr <Magazine> magazine (mc ()); - - magazine->title (); - } - - dll.close (); - - return 0; -} - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class auto_ptr <Magazine>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate auto_ptr <Magazine> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ |