Click here to Skip to main content
15,905,913 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Installation tool Pin
Jon Taylor8-Sep-02 23:38
Jon Taylor8-Sep-02 23:38 
GeneralRe: Installation tool Pin
Jawache9-Sep-02 0:08
Jawache9-Sep-02 0:08 
GeneralRe: Installation tool Pin
Alwin759-Sep-02 5:44
Alwin759-Sep-02 5:44 
GeneralFTP problem Pin
veeran8-Sep-02 23:13
veeran8-Sep-02 23:13 
GeneralRe: FTP problem Pin
Renjith Ramachandran8-Sep-02 23:51
Renjith Ramachandran8-Sep-02 23:51 
Generalhelp socket Pin
yuke8-Sep-02 23:00
yuke8-Sep-02 23:00 
GeneralRe: help socket Pin
yuke9-Sep-02 0:22
yuke9-Sep-02 0:22 
Questionhow to close the 1st mediaplayer object when opening a second ? Pin
DengJW8-Sep-02 22:38
DengJW8-Sep-02 22:38 
In Visual Basic 6, I want to make a mediaplayer executable using MS control: Mediaplayer to play mpg files.

I've got a problem if I opened the same movie object twice without knowing whether or not a same application was playing at the moment.

How can I determine the status of a mediaplayer obect so that when I play it for the second time, the first one, if still playing, can be stopped and closed?

I have tried to mediaplayer.stop and end the application when either form and mediaplayer losts its focus. It is supposed to work like this: when I run/play a second movie, the first one may lost focus and thus being stopped and closed. But it failed, i.e when I click the application twice, the second one will pop up and run, however, the first movie will be running simutaneously at background.

Any comments and suggestions?

Thanks in advance!



DJ
AnswerRe: how to close the 1st mediaplayer object when opening a second ? Pin
Rickard Andersson208-Sep-02 23:09
Rickard Andersson208-Sep-02 23:09 
GeneralRe: how to close the 1st mediaplayer object when opening a second ? Pin
DengJW8-Sep-02 23:29
DengJW8-Sep-02 23:29 
QuestionHow to map pixels to dialog unit Pin
Anonymous8-Sep-02 21:39
Anonymous8-Sep-02 21:39 
AnswerRe: How to map pixels to dialog unit Pin
adamUK8-Sep-02 22:01
adamUK8-Sep-02 22:01 
GeneralExceptions WTF Pin
Rickard Andersson208-Sep-02 21:32
Rickard Andersson208-Sep-02 21:32 
GeneralRe: Exceptions WTF Pin
Joaquín M López Muñoz8-Sep-02 22:37
Joaquín M López Muñoz8-Sep-02 22:37 
GeneralRe: Exceptions WTF Pin
Rickard Andersson208-Sep-02 23:05
Rickard Andersson208-Sep-02 23:05 
GeneralRe: Exceptions WTF Pin
Joaquín M López Muñoz8-Sep-02 23:30
Joaquín M López Muñoz8-Sep-02 23:30 
GeneralRe: Exceptions WTF Pin
Rickard Andersson209-Sep-02 0:39
Rickard Andersson209-Sep-02 0:39 
GeneralRe: Exceptions WTF Pin
Joaquín M López Muñoz9-Sep-02 1:23
Joaquín M López Muñoz9-Sep-02 1:23 
GeneralCRichEditCtrl::LineScroll() Problem! Pin
jabbaj8-Sep-02 20:53
jabbaj8-Sep-02 20:53 
GeneralDoDataExchange problem Pin
Anonymous8-Sep-02 20:36
Anonymous8-Sep-02 20:36 
GeneralRe: DoDataExchange problem Pin
Tomasz Sowinski8-Sep-02 23:37
Tomasz Sowinski8-Sep-02 23:37 
QuestionHow to change the caption? Pin
Daniel Strigl8-Sep-02 20:26
Daniel Strigl8-Sep-02 20:26 
AnswerRe: How to change the caption? Pin
Pavel Klocek8-Sep-02 21:20
Pavel Klocek8-Sep-02 21:20 
GeneralChanging the font used to draw tabs in CPropertyPage Pin
fferland8-Sep-02 16:59
fferland8-Sep-02 16:59 
GeneralRe: Changing the font used to draw tabs in CPropertyPage Pin
.dan.g.8-Sep-02 17:22
professional.dan.g.8-Sep-02 17:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.