A.5. Win32 Dynamic Link Libraries
Dynamic Link Libraries (DLLs) are the basic mechanism for component reuse in the Win32 family of operating systems. DLLs have been around much longer than Java or COM, so when I describe the DLL architecture as a component platform, I am fitting new terms to an old technology. While the goals of component programming are less fully realized in the DLL architecture, the key elements are still visible.
A.5.1. The DLL Loader
The loader architecture for DLLs is quite simple. First, call LoadLibrary to locate a binary by its name and location in the file system. Then, call GetProcAddress to locate a particular function entry point in the library, either by name or by ordinal (numeric address). Cast the result of ...
Get Component Development for the Java™ Platform now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.