Play Video in Visual C++ .NET


Currently i'm developing a video album using Visual C++ .NET form. A user can create a new album and add any video files (i.e AVI) to the album, and view it in the form. So, i'm just wondering how can I play a video files in the form that I created. Any sample code would be great. Thanks in advance.
fhmat19Asked:
Who is Participating?
 
Svetlin_PanayotovConnect With a Mentor Commented:
Well - this won't compile with your Windows Forms app - but if you take a look at the source (EasyPlayer.cpp) - you'll have at least some reference on how to use MCI.
There's also good article on how to port MFC controls to Windows Forms - again Code Project - http://www.codeproject.com/managedcpp/mfcandwindowsforms.asp

I also forgot to mention the other way around - just use media player as ActiveX control - right click on your toolbox, select add/remove items and in the COM tab find media player.The control is really easy to use.
0
 
Svetlin_PanayotovCommented:
0
 
fhmat19Author Commented:
I believed that the program from that link is using MFC. Is it possible for me to combine it with my program, which using Form under .NET environment.
0
 
fhmat19Author Commented:
Yeah, I think I just gonna use the Windows Media Player thing. It seems easier. Thanks man.....
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.