我尝试在安装了多类型MFC库的visual 2015 MFC上运行以前编写的MFC c++代码。
但是,我在这里仍然有12个关于缺少函数的错误:
IntelliSense: cannot open source file "afxwin.h" C1083 Cannot open include file: 'afxwin.h': No such file or directory cannot open source file "afxext.h"/"afxdisp.h"/"afxdtctl.h"/"a
我有使用MFC的dll,我需要它在另一台计算机上工作,而不需要额外的安装。
如果"C/C++ MFC代码生成MFC运行时库“是多线程动态链接库(/MD),并且”->的常规->用法“设置为在共享动态链接库中使用MFC,则my DLL需要msvcr80.dll。
如果将"General -> Use of MFC“设置为在静态库中使用MFC,并将"C/C++ -> Code Generation -> Runtime Library”设置为“Multi-threaded (/MT)”,则会出现错误#error Please use the /M