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

    Having trouble with Directs\Show

    Hello,

    I am trying to make a filter for DirectShow.

    My problem is with the header streams.h: the compiler cannot find the file when I include it.

    I have built strmbasd.lib and linked to it (I am making a debug build).

    I am using visual studio 6.0.

    According to the sdk documentation, this is all that is required to use the DirectShow base classes. I am probably just forgetting something, but I have not been able to figure it out. I appreciate any help that is offered. Thank you.

  2. #2
    Join Date
    Jul 2002
    Posts
    2,543

    Re: Having trouble with Directs\Show

    From some unknown reasons, Microsoft keeps DirectShow stuff in separate download:
    http://www.microsoft.com/downloads/d...DisplayLang=en

    streams.h file can be found there.

  3. #3
    Join Date
    Mar 2005
    Posts
    23

    Re: Having trouble with Directs\Show

    Thank you very much for the reply. I do have the file streams.h but the compiler still cannot find it. The only way I can get the compiler to find it is to copy everything in the base classes directory into the local project directory.

    I did an experiment to try to locate my problem but I have not found it yet. This is what I did:

    I built and ran the sample project CaptureTex under "..\DXSDK\Samples\C++\DirectShow\Capture\CaptureTex\" using the .dsw included and it worked fine. Then, I put a copy of all the project files in a separate folder but built the project in a new workspace. I also linked to all of the libraries that the project originally linked to. This time it would not compile, giving me the same error about not finding streams.h.

    I cannot seem to put my finger on the problem. If you have any ideas about what may be wrong, or if you think I might lack some fundamental knowledge regarding the problem, please tell me. I will take any advice at all. Thank you.

  4. #4
    Join Date
    Jul 2002
    Posts
    2,543

    Re: Having trouble with Directs\Show

    Add directory where stream.h is placed, to the list of VC++ include directories.

  5. #5
    Join Date
    Mar 2005
    Posts
    23

    Re: Having trouble with Directs\Show

    Thank you for your help Alex, including the directory solved my problem.

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