Qt使用MFC ATL的问题
尘小陌 2019-09-05 09:28:17 用Qt写DShow方面的东西,由于要用到CComPtr智能指针,所以在Qt中添加了atlbase.h头文件,但是编译的时候,出现以下4条错误提示
是Qt不能使用atlbase,还是需要要哪里修改设置?
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\include\atldef.h:665: error: expected constructor, destructor, or type conversion before '(' token
#define ATLPREFAST_SUPPRESS(x) __pragma(warning(push)) __pragma(warning(disable: x))
^
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\include\atldef.h:666: error: expected constructor, destructor, or type conversion before '(' token
#define ATLPREFAST_UNSUPPRESS() __pragma(warning(pop))
^
C:\Qt\Qt5.11.1\Tools\mingw530_32\i686-w64-mingw32\include\mbstring.h:11: error: expected '}' before end of line
C:\Qt\Qt5.11.1\Tools\mingw530_32\i686-w64-mingw32\include\mbstring.h:11: error: expected declaration before end of line