CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2005
    Posts
    2

    Unhappy Why can't find the file "streams.h"

    I download the source code of DirectShow capture application(AMCap) ,and when I compile it,there is always a fatal error:can't find the file "streams.h".It also happenes when I compile other codes about DirectShow.
    Why?!Need some DDK or....?
    Last edited by yeetins; April 25th, 2005 at 12:01 PM.

  2. #2
    Join Date
    Jul 2004
    Posts
    69

    Re: Why can't find the file "streams.h"

    Just a guess but if you want file streams, #include <fstream> and if you want io do a #include <iostream>. The #include <*.h> is depreciated, so don't add the .h extension for includes.

  3. #3
    Join Date
    Jul 2001
    Posts
    19

    Re: Why can't find the file "streams.h"

    I dont know what samples your working with or anything but I know that streams.h ships with some versions of the DirectX SDK and is used in some of the samples provided with that version of the SDK cant remember off hand wich version of the DirectX SDK includes the DirectShow SDK ..

    As I recall they did come seperately at one point

  4. #4
    Join Date
    Jan 2002
    Location
    Scaro, UK
    Posts
    5,940

    Re: Why can't find the file "streams.h"

    You need to make sure that the direct show base classes library is included in your paths.

    Go to (in Dev Studio 2002 and above) Tools/Options and select the Projects/ VC++ Directories like here :

    http://www.codeguru.com/dbfiles/get_...PG&ds=20050401

    Change the drop down to "Include Files" and add "C:\DXSDK\Samples\C++\DirectShow\BaseClasses" (or wherever your DirectX SDK install is) at the bottom.

    It should find the files now.

    Darwen.
    www.pinvoker.com - PInvoker - the .NET PInvoke Interface Exporter for C++ Dlls.

  5. #5
    Join Date
    Apr 2005
    Posts
    9

    Re: Why can't find the file "streams.h"

    maby u have the header file but not the *.obj file which is the compiled code .
    EshFire.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured