DirectShow NEWBIE Tutorial Request

This is a discussion on DirectShow NEWBIE Tutorial Request within the C++ Programming forums, part of the General Programming Boards category; I have been trying to learn DirectShow with little success. I have been everywhere trying to find books, googled my ...

  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    164

    Unhappy DirectShow NEWBIE Tutorial Request

    I have been trying to learn DirectShow with little success. I have been everywhere trying to find books, googled my rear off and been to codeproject, codeguru, and now here.

    I have found some great help and done alot of reading on msdn site and get the general facts on DirectShow, but have not found a tutorial that helps me create a simple app and compile it.

    I have downloaded the directshow sdk and several example Visual programs and they all get compiler errors. I have added the requested header files and and linked the required libraries and now I get errors related to the MS Header files which I believe are link issues.... example below

    Does anyone know of a tutorial that helps create a simple dialog based based program using directshow, compiler MS Visual C++ 6.0, that can connects to a usb web based camera? I just need something to read and help me understand the concepts behind DS. Tall order I know, sorry for the vague request...

    Code:
    c:\program files\microsoft visual studio\vc98\include\ctlutil.h(448) : error C2504: 'IBasicVideo2' : base class undefined
    c:\program files\microsoft visual studio\vc98\include\ctlutil.h(915) : error C2146: syntax error : missing ';' before identifier 'm_dwAdvise'
    c:\program files\microsoft visual studio\vc98\include\ctlutil.h(915) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
    c:\program files\microsoft visual studio\vc98\include\ctlutil.h(915) : error C2501: 'm_dwAdvise' : missing storage-class or type specifiers
    c:\program files\microsoft visual studio\vc98\include\amfilter.h(285) : error C2061: syntax error : identifier 'LONG_PTR'
    c:\program files\microsoft visual studio\vc98\include\renbase.h(80) : error C2061: syntax error : identifier 'DWORD_PTR'
    c:\program files\microsoft visual studio\vc98\include\renbase.h(90) : error C2146: syntax error : missing ';' before identifier 'm_dwAdvise'
    c:\program files\microsoft visual studio\vc98\include\renbase.h(90) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers

  2. #2
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,586
    First it looks like you have not included basetsd.h b/c of the DWORD_PTR errors. Just in case you don't have it, it is available for download on our game programming forum at the top in the stickies portion of the page.

    Second you must link with quartz.lib, dshow.lib, and strmiids.lib and quite possibly winmm.lib.

    It would be next to impossible to explain DirectShow in one post so I won't try. My advice is to get a book on multi media programming with DirectShow.

  3. #3
    Registered User
    Join Date
    May 2004
    Posts
    164
    Thanks for heads up on header and the libs trying that now. I agree, I need a good book, tyring to find one, only way is to order online, been to 4 bk stores and found nothing.

    I appreciate the information though, will post and let you know how its coming, I think I have quite possibly downloaded every document on the internet : - )

  4. #4
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,586
    www.amazon.com is your best bet.
    www.gamedev.net is a good place to find books that are recommended by other programmers. Click on their articles and books link in the page header. They will then lead you to amazon so you can buy the book.

    Good way to buy good books.

  5. #5
    Registered User
    Join Date
    May 2004
    Posts
    164
    I saw one by Mark Pesce, it is recommended by MSDN... Thinking about trying that one, all the books on DirectShow are out of print, since .Net came into play, most stuff relating to VS C++ 6.0 seems to be non-existant.

    Think the new .Netters forget where the original languages came from! I like .Net but still code primarily in old VS since I have not become preficient at C#.

    Thanks for the links, I am starting from scratch reading everything on MSDN and waiting for a book to come in.

    Thanks for being cool, on such vague questions. I am sure I will post future questions once I have read more on the subject.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can you check what is wrong with this code
    By Ron in forum C++ Programming
    Replies: 4
    Last Post: 08-01-2008, 10:59 PM
  2. My new website
    By joeprogrammer in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 03-17-2006, 06:38 PM
  3. DirectShow tutorial in C or C++
    By BobS0327 in forum Windows Programming
    Replies: 0
    Last Post: 10-23-2005, 12:15 PM
  4. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 08:40 PM
  5. C++ Newbie and tutorial quandry
    By cyborg in forum Windows Programming
    Replies: 4
    Last Post: 09-24-2001, 04:25 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21