diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
commit | c44379cc7d9c7aa113989237ab0f56db12aa5219 (patch) | |
tree | 66a84b20d47f2269d8bdc6e0323f338763424d3a /ACE/examples/DLL/README | |
parent | 3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (diff) | |
download | ATCD-c44379cc7d9c7aa113989237ab0f56db12aa5219.tar.gz |
Repo restructuring
Diffstat (limited to 'ACE/examples/DLL/README')
-rw-r--r-- | ACE/examples/DLL/README | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/ACE/examples/DLL/README b/ACE/examples/DLL/README new file mode 100644 index 00000000000..716b2c2b628 --- /dev/null +++ b/ACE/examples/DLL/README @@ -0,0 +1,47 @@ +$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! + |