Click here to Skip to main content
15,921,577 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What does DISCARDABLE in .rc file signify? Pin
Mark Salsbery19-Jul-07 5:34
Mark Salsbery19-Jul-07 5:34 
AnswerRe: What does DISCARDABLE in .rc file signify? Pin
David Crow19-Jul-07 3:10
David Crow19-Jul-07 3:10 
QuestionWhere i can find ttool.exe Pin
yaminisridaran18-Jul-07 20:04
yaminisridaran18-Jul-07 20:04 
QuestionAdd controls to dialog visual studio 2005 Pin
TobetheWinner18-Jul-07 19:30
TobetheWinner18-Jul-07 19:30 
AnswerRe: Add controls to dialog visual studio 2005 Pin
Mark Salsbery19-Jul-07 5:43
Mark Salsbery19-Jul-07 5:43 
AnswerRe: Add controls to dialog visual studio 2005 Pin
Hamid_RT25-Jul-07 8:55
Hamid_RT25-Jul-07 8:55 
Questionhow to run the MS-media palyer component.. Pin
vasu_sri18-Jul-07 19:16
vasu_sri18-Jul-07 19:16 
AnswerRe: how to run the MS-media palyer component.. Pin
thammadi19-Jul-07 1:09
thammadi19-Jul-07 1:09 
vasu_sri wrote:
i have mp3,avi and picture files . i have to show that files into my application like preview so..


Your requirement can be met by using Windows Media Player component for playing audio/video files. Follow the below steps:
Create a dialog box application.
Select Project->Add to Project->Components and Controls.
Select Registered ActiveX Controls folder
Select Windows Media Player component
When you select, a confirm classes dialog box appears. Click "OK"
Go to your dialog resource. Windows Media Player icon would be displayed on the controls selection view.
drag drop the control onto your dlg box. Add a member variable for the control in the class wizard.

Use 'SetURL' and GetControls() methods of the media player object for controlling the audio/video files (like play, pause, stop etc.)

E.g
m_MPlayer.SetUrl("D:\\Songs\\Xyz.mp3");
m_MPlayer.GetControls().play();

FYI: I am using Windows Media Player Ver 11

Hope this helps! Smile | :)

Thammadi
GeneralRe: how to run the MS-media palyer component.. Pin
vasu_sri19-Jul-07 3:55
vasu_sri19-Jul-07 3:55 
GeneralRe: how to run the MS-media palyer component.. Pin
thammadi19-Jul-07 22:21
thammadi19-Jul-07 22:21 
Questiondata not fetched in a variable Pin
p_18-Jul-07 17:47
p_18-Jul-07 17:47 
AnswerRe: data not fetched in a variable Pin
Paresh Chitte18-Jul-07 19:56
Paresh Chitte18-Jul-07 19:56 
AnswerRe: data not fetched in a variable Pin
MANISH RASTOGI18-Jul-07 20:05
MANISH RASTOGI18-Jul-07 20:05 
GeneralRe: data not fetched in a variable Pin
p_18-Jul-07 20:12
p_18-Jul-07 20:12 
QuestionRe: data not fetched in a variable Pin
David Crow19-Jul-07 3:14
David Crow19-Jul-07 3:14 
QuestionHow to cover TaskBar Pin
hanlei000000000918-Jul-07 15:37
hanlei000000000918-Jul-07 15:37 
AnswerRe: How to cover TaskBar Pin
Mark Salsbery18-Jul-07 15:50
Mark Salsbery18-Jul-07 15:50 
GeneralI hope my program cover taskbar even the bar top of other window Pin
hanlei000000000918-Jul-07 16:20
hanlei000000000918-Jul-07 16:20 
AnswerRe: How to cover TaskBar Pin
Nibu babu thomas18-Jul-07 21:54
Nibu babu thomas18-Jul-07 21:54 
GeneralRe: How to cover TaskBar Pin
Mark Salsbery19-Jul-07 5:59
Mark Salsbery19-Jul-07 5:59 
Questioncompare string Pin
dellthinker18-Jul-07 13:48
dellthinker18-Jul-07 13:48 
QuestionRe: compare string Pin
Mark Salsbery18-Jul-07 14:33
Mark Salsbery18-Jul-07 14:33 
AnswerRe: compare string Pin
dellthinker18-Jul-07 15:18
dellthinker18-Jul-07 15:18 
GeneralRe: compare string Pin
Mark Salsbery18-Jul-07 15:35
Mark Salsbery18-Jul-07 15:35 
GeneralRe: compare string Pin
Ram Murali18-Jul-07 15:39
Ram Murali18-Jul-07 15:39 

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.