生成一个win32的dll,在共享dll中使用mfc,stdafx.h中添加#include 后,就无法编译成功了。提示:C1189 错误。
vs2008生成一个win32的dll,在共享dll中使用mfc,stdafx.h中添加#include <afx.h>后,就无法编译成功了。提示:
C1189 错误。
错误 1 fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h> c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxv_w32.h 16 333
怎么解决呀,召唤大神。