2011年4月7日 星期四

Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]

Error Message:
Error 1 fatal error C1189: #error :  Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d] c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h 24 MFC_Foxit

Solve:

1. Right click on project and select "properties"



























2. Configuration Properties -> General -> Use of MFC
Chang selection to "Use MFC in a Shared DLL" if this is a SDI project, or to "Use MFC in a Static Library" if this is a MDI project.


















沒有留言:

張貼留言