工程WinCap编译发现dxtrans.h不能找到的错误,参考
http://www.cppblog.com/Thinkfeng/articles/69788.html
两种解决的方法:
(1)
Remove anything to do with "dxtrans.h" and "IDXEffect" .
Say, for file "qedit.h"
//#include "dxtrans.h" -- Line 498
// IDxtCompositor //: public IDXEffect -- Line 837
// IDxtAlphaSetter //: public IDXEffect -- Line 1151
// IDxtJpeg //: public IDXEffect -- Line 1345
// IDxtKey //: public IDXEffect -- Line 1735
Now, everything compiles and works fine.
注意:我原本以为所有都注释掉,发现不能成功,然后尝试只注释当前行的IDXEffect的父类即可,变译通过。
(2)
You can get by with less edits of qedit.h (commenting out the missing interfaces can be error prone).
Comment out the include of dxtrans.h.
Before you include qedit.h, add the following #defines:
#define
__IDxtCompositor_INTERFACE_DEFINED__
#define
__IDxtAlphaSetter_INTERFACE_DEFINED__
#define
__IDxtJpeg_INTERFACE_DEFINED__
#define
__IDxtKey_INTERFACE_DEFINED__
#include
这个方法我尝试了,还是会出现问题,问题是说struct 的tag 有问题
Compiler Error C2332
Error Message
'typedef' : missing tag name
鉴于方法(1)可以解决问题,因此直接采用该方法通过编译。