View Full Version : IDVEnc interface and writing AVI

February 3, 2004, 15:42:35
I have two questions. First, I want to use IDVEnc interface in my application. I have inserted the method of put_IFormatResolution(...) into my application but compiler gave the error "undeclared identifier". What else should I do in order to use this method? Second, is there any way to write an AVI file without using startLive() method? Thanks.

Stefan Geissler
February 4, 2004, 07:54:57

First of all make sure, that you include the correct version of Dshow.h. The standard VC++ 6.0 installation provides an older version of the file Dshow.h. Make sure, that the DirectX include path ist the first path to be included. Then the method put_IFormatResolution() should be a member of the interface.
There is no other way than starting the camera to capture AVI with startLive() if you use IC Imaging Control. If you use DirectShow directly, you can get information how to start the filter graph in the DirectShow documentation, that is delivered with the DirectX SDK.