Home | Overview | How Do I | Details | Sample
To prepare the MFC DLL for use
When you build your DLL, the linker also builds an import library for you. This library has the same base name as your DLL, but has the extension .LIB. You may want to provide both a debug and retail (/release) version of your DLL. This permits client programs to build both debug and retail versions of their applications and link them with the appropriate debug or retail version of all DLLs.
If you are building an application that implicitly links to a DLL, add the import library to the Object/library modules text box on the Link tab in the Project Settings dialog box. Make sure you put the debug version of the import library in the debug settings and the release version in the release settings. The only other change you must make is to add the include file for the DLL to any source files that call the DLL’s exported functions.