CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Using .AVI ...

  1. #1
    Guest

    Using .AVI ...

    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.


  2. #2
    Join Date
    Apr 1999
    Location
    Manitoba, Canada
    Posts
    82

    Re: Using .AVI ...

    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...


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured