Qt 使用包含MFC的内容包含过的库

将该库的头文件放stdafx.h最前面,并在该头文件的之前加入

#define _AFXDLL 

#include <afx.h>

#include <xxxx.h>//库的头文件

如图:

原文地址:https://www.cnblogs.com/ybqjymy/p/15127340.html