Solved

Play Video in Visual C++ .NET

Posted on 2004-10-10
4
381 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
ID: 12271935
0
 

Author Comment

by:fhmat19
ID: 12273401
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
ID: 12274058
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
ID: 12275282
Yeah, I think I just gonna use the Windows Media Player thing. It seems easier. Thanks man.....
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

911 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

17 Experts available now in Live!

Get 1:1 Help Now