-Open your MFC project.
-From the Project menu, click Settings.
-In the Settings For combo box, select All Configurations.
-Click the General tab. If it is not visible, use the tab scroll buttons to scroll to the left.
-In the Microsoft Foundation Classes combo box, select Use MFC in a Shared DLL.
-Click OK to save the changes.