C++ Debug:fatal error C1083: Cannot open include file: 'streams.h': No such file or directo

错误提示信息:fatal error C1083: Cannot open include file: 'streams.h': No such file or directory

错误原因:找不到streams.h这个文件

解决方法:

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

别忘记了编程时附带,在Project\Setting\Link\ 中加入 strmbasd.lib uuid.lib winmm.lib

①.其实编译dx的程序很简单,你需要在菜单tools-> options-> derectorys-> include包含:
           C:\DXSDK\Include;
          C:\DXSDK\SAMPLES\C++\DIRECTSHOW\BASECLASSES
           lib包含baseclasses编译的lib:C:\DXSDK\Lib
      ②.把directx的include文件和库文件顺序提到最前

别忘记了顺序.