我运行书中的程序!
结果出现下面的错误!
由于程序非常之大故!不能将其帖出来!
下面是程序的错误!
c:\program files\microsoft visual studio 8\vc\atlmfc\include\afx.h(24) : 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]
TestMain.cpp
c:\program files\microsoft visual studio 8\vc\atlmfc\include\afx.h(24) : 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]
错误已经很明白告诉你了:
#error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]
使用多线程动态连接运行时库的MFC程序, 需要使用MFC动态连接库.
改工程设置:
Project|Properties|Configuration Properties|General|Use of MFC : Use MFC in a
Shared DLL
阅读(3768) | 评论(1) | 转发(0) |