Multiple applications might need to share common code, DLL is useful in that case. The concept of DLL helps to promote code reuse and efficient memory usage, and also eases code deployment and installation. The DLL may be loaded into the memory when it is actually needed, so the memory usage becomes optimized. For using static DLL the functions should be exported that can be called by other code that builds against its header files and links against its import library.
This article describes the way to export functions(in source file) and import functions(in header file). The article also describes the way to freeze dll, which is required before building application.
--kamlesh sangani 11:46, 26 September 2009 (UTC)