Solved

Play Video in Visual C++ .NET

Posted on 2004-10-10
4
370 Views
Last Modified: 2013-11-25

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.
0
Comment
Question by:fhmat19
  • 2
  • 2
4 Comments
 
LVL 6

Expert Comment

by:Svetlin_Panayotov
Comment Utility
0
 

Author Comment

by:fhmat19
Comment Utility
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
 
LVL 6

Accepted Solution

by:
Svetlin_Panayotov earned 500 total points
Comment Utility
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
 

Author Comment

by:fhmat19
Comment Utility
Yeah, I think I just gonna use the Windows Media Player thing. It seems easier. Thanks man.....
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now