473,569 Members | 2,845 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using MCI to create a video "splash screen"

Hello, I have a c++ application and I would like to simply play a
short video clip (mpg file) as a splash screen when the application
first begins to execute. I seem to be having trouble so far. I
believe I can use the MCI functions by doing the following:

//code starts here//
#include "stdafx.h"
#pragma comment(lib, "vfw32.lib" )

HWND m_Player;
m_Player = MCIWndCreate(hw ndParent,AfxGet InstanceHandle( ),WS_CHILD |
WS_VISIBLE, "video.mpg" );
MCIWndPlay(m_Pl ayer);

//code ends here//

However, I'm not sure how to create the apropriate window so that I
can pass the window handle to. Can someone please post a sample of
code that would work for this? Thanks for any help you can give.
Also, feel free to email me at rw***@drexel.ed u
Thanks!
--Ryan
Jul 22 '05 #1
1 2419
"Ryan" <sc******@stude nt.umass.edu> wrote...
Hello, I have a c++ application and I would like to simply play a
short video clip (mpg file) [...]


This is impossible using Standard C++ (the only subject of this
newsgroup). You need to ask in a newsgroup dedicated to your
platform.
Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2361
by: Bo | last post by:
Hi The rectangles I draw in paint() always hide underneath the "Select one to launch" screen, while the string "Hello World" is drawn over the "to launch" screen. What am I doing wrong? jdk 1.4, midp 2.0 public class myCanvas extends Canvas{
5
6677
by: Stan Brown | last post by:
The page http://w3development.de/css/hide_css_from_browsers/media/ suggests using @media all { } around rules to hide them from older browsers. Suppose the above occurs in a style sheet that was linked from my HTML via <link media="screen" ...>
0
1284
by: PeterK | last post by:
Hi, I am trying to install Visual Studio .Net 2003 (Academic Edition) on my PC with a 64 bit AMD processor. This is what happens: 1. The install process installs the prerequisites -> ok 2. The install process starts copying approx. 90 files to harddisk -> ok 3. The install process starts install scripts. At about 2/3 of the scripting...
73
8848
by: PC Datasheet | last post by:
Does anyone know how to do a "screen scrape" to get data off a website and enter it into an Access table? Thanks for all help? Steve PC Datasheet
2
1523
by: Robin Tucker | last post by:
Hiya, I have a problem with my application. It hangs around in memory after exiting (and the debugger thinks its still running; I am unable to "break" or "stop" execution). The main loop below shows my "main" function. When the main form is closed, this function is exited, so the "hang" occurs in code outside of my control. I am using...
4
4464
by: simon | last post by:
hello, i have a section of a page that has multiple dropdowns. each dropdown calls the same method on a change of selection by the user. the method loops over all the dropdowns and if the newly selected items matches a previously set item, it changes the dropdown's background color from white to yellow and nulls out the previous selections...
0
992
by: Chris | last post by:
Hey guys, I'm pulling my hair. I have a bunch of web services, some IHttpModules and some SoapExtensions that get loaded through the web.config. When there is an exception in one of those modules or extensions during a web request ASP.Net should send a nice SoapException in XML format back to the web service client. The problem is, it...
1
4423
by: fischermx | last post by:
My software should take snapshots from the current screen from an icon in the try area. I need to programmatically emulate what the "print-screen" keyword does. How do I do that ? Thanks in advance,
2
1018
by: Cirene | last post by:
I have a dropdownlist on the bottom of a long form which does a postback. How can I make the form "stay" where it's it and not go back to the top of the page after the code is ran? I can't use ajax in this case. Thanks.
0
7695
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7922
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8119
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7668
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7964
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6281
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5509
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
1
2111
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.