在编译DriectShow中自带sample:EVRPlayer时发生错误
fatal error C1189: #error : NTDDI_VERSION setting conflicts with _WIN32_WINNT setting
sample是在vs2008中开发的,而我是用vs2010打开的,系统环境win7 所以发生了上边错误
修正方法:
//sdkddkver.h
#if !defined(_WIN32_WINNT) && !defined(_CHICAGO_)
#define _WIN32_WINNT 0x0600//alex edit
//#define _WIN32_WINNT 0x0601//alex edit
#endif