April 15th, 1999, 08:51 AM
I need to implement a dialog with a CAnimateCtl (using *.avi).
Where am I find informations about how to create an apropriate avi file
and play it from a CDialog.
Blair Mahaffy
April 15th, 1999, 08:33 PM
I'd suggest first that you use one of the AVIs included with the VC++ GENERAL\CMNCTRLS samples so you dont' have to worry about creating an AVI that will work. These do.
Its real easy when you know the AVI works:
Add an animate control to your dialog then add a CAnimateCtrl m_animate; and do these calls:
m_animate.Open("myavi.avi");
m_animate.Play(0,-1,1);
m_animate.Close();
MANY AVIs won't work because they are too complex for MFC's rudimentary play-back routines. Basically an AVI is a series of BMPs chained together with some timing information.
Take a look at www.winsite.com for a product called AVI Constructor or go straight to the company at: www.henge.com/~caracena
I've used this tool to build some simple AVIs...