4 This example deals with dynamically opening objects and accessing
7 First, the pointer to the object is obtained by accessing symbol
8 of the function which can get the object pointer. Then the methods
9 in that library object is accessed.
11 Here, the Magazine class is an abstract class with various magazine
12 objects like Newsweek and Today deriving form it. The libraries are
13 dynamically linked on demand. Thus, they can be changed on the fly
14 and accessed with its new changes.
16 The ACE_DLL class used in this example is an helper class for
17 performing various operations on the library object.
19 Compilation and Execution:
20 -------------------------
22 1. On POSIX/UNIX platforms:
24 First, build the test program, which you can do on UNIX as follows:
28 Then run the test program:
37 Load DLL.sln which contains DLL_Main.vcproj, DLL_Today.vcproj and DLL_Newsweek.vcproj.
39 Build each vcproj such that you build DLL_Main.vcproj last.
40 This is because the test_dll.exe will be using Today.dll and Newsweek.dll.