1) 安装directX sdk
2)打开安装目录下的dshow.dsw,进行编译
3)在VC++的Tools/Option/Directory的Include和Library中分别加入
C:/DXSDK/Include
C:/DXSDK/SAMPLES/C++/DIRECTSHOW/BASECLASSES
C:/DXSDK/SAMPLES/C++/COMMON/INCLUDE
C:/DXSDK/Lib
C:/DXSDK/SAMPLES/C++/DIRECTSHOW/BASECLASSES/DEBUG
4)在编译你工程前,在Project/Setting/Link/ 中加入 strmbasd.lib uuid.lib winmm.lib