Using MCI to create a video "splash screen"

R

Ryan

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 (e-mail address removed)
Thanks!
--Ryan
 
V

Victor Bazarov

Ryan said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top