The Dynamically Linked Library Entry/Exit Function
You can provide optional entry and exit code for your DLLs when required under various initialization and shutdown operations. These operations can occur during process or thread initialization/termination.
Process/Thread Initialization and Termination Routines
Typical initialization operations include registering Windows classes, initializing global variables, and initializing an entry/exit function. This occurs during the method of entry for the DLL, which is referred to as the DLLEntryPoint function. This function is actually represented by the begin..end block of the DLL project file. This is the location where you would set up an entry/exit procedure. This procedure must take a single parameter ...
Get Borland® Delphi™ 6 Developer's Guide 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.