Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Play Video in Visual C++ .NET

Posted on 2004-10-10
4
Medium Priority
?
421 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

610 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