473,508 Members | 2,360 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(hwndParent,AfxGetInstanceHandle(),WS_ CHILD |
WS_VISIBLE, "video.mpg");
MCIWndPlay(m_Player);

//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.edu
Thanks!
--Ryan
Jul 22 '05 #1
1 2417
"Ryan" <sc******@student.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
2360
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...
5
6674
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...
0
1280
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....
73
8831
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
1519
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...
4
4458
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...
0
990
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...
1
4417
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...
2
1015
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...
0
7115
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7321
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,...
0
7377
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...
1
7036
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...
0
5624
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,...
1
5047
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...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
414
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...

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.