https://www.microsoft.com/en-us/download/details.aspx?id=8279 下载 适用于Windows 7和.NET Framework 4的Microsoft Windows SDK
1.0 适用于Windows 7和.NET Framework 4的Microsoft Windows SDK
2.0 编译不同版本
C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\baseclasses
VS2010 打开 baseclasses.sln 解决方案 选择Debug、Debug_MBCS、Realese、Realese_MBCS版本进行编译,按F7编译。
3.0 添加目录
C:\Program Files\Microsoft SDKs\Windows\v7.1\Include
C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\baseclasses
以及lib:
C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib(可以把编译生成的strmbasd.lib复制到C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib里,就不必写下面一条了!)
这个要根据所需要的strmbasd.lib版本进行选择:
C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\baseclasses\Debug
C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\baseclasses\Debug_MBCS
C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\baseclasses\Release
C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\baseclasses\Release_MBCS