To change your MFC project setting to link dynamically to the MFC libraries, perform the following steps:
1. Open your MFC project.
2. From the Project menu, click Settings.
3. In the Settings For combo box, select All Configurations.
4. Click the General tab. If it is not visible, use the tab scroll buttons to scroll to the left.
5. In the Microsoft Foundation Classes combo box, select Use MFC in a Shared DLL.
6. Click OK to save the changes.