Btw, did you look at the link I gave you on the other avi thread?
Those examples works perfect in VB. I've made a couple of video editing programs based on those examples. Don't think it would be too hard to port into C++.