When you write the code for the DLL module, you need to select the correct module attributes, define the procedures and data in your DLL, and write the initialization and termination code. This section discusses these tasks.