17.2. Overview

Figure 17.1 shows the difference between a normal executable and an executable that uses dynamic link libraries.

Figure 17.1. A normal executable compared to an executable that uses DLLs. The normal application contains all object code in its EXE. The DLL application links to the DLLs at run-time

Any application that you write in Windows actually uses DLLs without your really being aware of it. For example, a normal MFC program of any size links to, among other things, KERNEL32.DLL, USER32.DLL, ADVAPI32.DLL, COMDLG32.DLL, GDI32.DLL, WINSPOOL.DLL, OLE32.DLL, SHELL32.DLL, and so on. As you can see, Windows uses DLLs quite extensively. ...

Get Win32 System Services: The Heart of Windows® 98 and Windows® 2000 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.