Hi
You have to make the following "#include" s
#include <vfw.h>
#include <mmsystem.h>
#include <avifmt.h>
// You can open the avi file using the STDAPI call AVIFileOpen();
// First initialize the AVI library.
AVIFileInit();
PAVIFILE avi_file = NULL;
char avifilename[] = "your file path";
AVIFileOpen(&avi_file, avifilename, OF_READ);
// This will open the AVI file and give u a handle to the file
// in "avi_file".
// Now create on object of type AVIFILEINFO.
AVIFILEINFO myaviInfo;
// Read the information you want;
AVIFileInfo(&avi_file, &myaviInfo, sizof(myaviInfo));
Now the info structure is filled with the data u want ...
You can also experiment with AVIFileReadData() function.
Hope this helps
abp