Collaboration diagram for CDllManager:

Public Member Functions | |
| CDllManager () | |
| The CDllManager constructor simply calls the Construct function. | |
| ~CDllManager () | |
| The CDllManager destructor simply calls the Destruct function. | |
| void | Construct () |
| The Construct function sets the intial linked list pointer to NULL. | |
| void | Destruct () |
| The Destruct function empties the linked list if it contains any items and sets the linked list pointer to NULL. | |
| HMODULE | OpenDll (const char *name) |
| The OpenDll function returns a handle to the required dll. | |
Private Attributes | |
| CDllList * | head |
| The first node of the linked list. | |
This class keeps track of which dlls have been opened by name so that time is not wasted loading the same dll more than once. It also provides a useful layer of abstraction. Internally a linked list of CDllList objects holds the data.
|
|
The CDllManager constructor simply calls the Construct function.
|
|
|
The CDllManager destructor simply calls the Destruct function.
|
|
|
The OpenDll function returns a handle to the required dll. This function first seaches the list to see if a dll with the given name has already been opened. If it has the open handle is returned. Otherwise CDllList::NewDll() is called to open the dll and return its handle.
|
1.4.2