Click here to Skip to main content
15,936,903 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I want to play a .avi file using animation control in dialog boxes.I used animation control and then through the variable of the control, i called the respective functions like-open(),play()?It is working fine for small sized videos(100-300 kb),but
there is problem in playing heavy videos.Any Guesses abou the same.??

Also ,I want to display both images and video in the same dialog box.Suggestions welcome.Is it possible to use animation control for both the purposes-displaying videos as well as images?

Please reply.It is bit urgent.

Thanks in Advance.

This gives a thread procedure. You have to call this procedure using
AfxBeginThread()funation from your main dialog.
Share this answer
I am simply using the following lines of code in OnInitDialog()




m_wndAnimate =variable of cAnimate control.

Please review and share your response.
Share this answer
Resmi Anna 21-Mar-12 9:16am    
This will not work. because you have to continusly play the avi file. For that calling just one Play() is not enough. you refer the link i have specified. there the video is played in a message loop until you get the event to stop the play

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900