vs 2005下
1project properties->general 左侧的 project defaults 中 use of MFC 改成 Using MFC in a shared DLL 或者是 静态库
2 加入 #include<afxwin.h>
//注意,如果加入其它的头文件,有可能会连接错误。我就加入了stdlib.h 又加入了 afxwin.h 静态链接MFC就出错来了.后来就有好了,无奈。
vs 2005下
1project properties->general 左侧的 project defaults 中 use of MFC 改成 Using MFC in a shared DLL 或者是 静态库
2 加入 #include<afxwin.h>
//注意,如果加入其它的头文件,有可能会连接错误。我就加入了stdlib.h 又加入了 afxwin.h 静态链接MFC就出错来了.后来就有好了,无奈。