Author Topic: DirectShow framework for C++  (Read 748 times)

0 Members and 1 Guest are viewing this topic.

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5098
  • Karma: 380
    • View Profile
DirectShow framework for C++
« on: March 14, 2007 »


Here's a very basic framework for playing AVI video using DirectShow.  You don't need the DirectX SDK for this one, about a year ago DirectShow was moved into the Platform SDK and is part of the files you downloaded to install VS Express.

Jim
Challenge Trophies Won:

Offline rdc

  • Pentium
  • *****
  • Posts: 1480
  • Karma: 138
    • View Profile
    • Clark Productions
Re: DirectShow framework for C++
« Reply #1 on: March 14, 2007 »
Nice one Jim.

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4130
  • Karma: 223
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: DirectShow framework for C++
« Reply #2 on: March 14, 2007 »
Nice one.

One thing I guess concerning window event handling or so. When you compile it
using #define IN_OWN_WINDOW 1 - once the avi-playing window is in the
background - you have to resize / move it to see the actual avi again.

This doesn't occur with #define IN_OWN_WINDOW 0.

Anyway - great code as always, Jim!
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5098
  • Karma: 380
    • View Profile
Re: DirectShow framework for C++
« Reply #3 on: March 14, 2007 »
It's probably not pumping messages properly - thanks for the heads-up!

Jim
Challenge Trophies Won: