Click here to Skip to main content
15,903,201 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: create an owned popup window Pin
24-Jan-02 15:18
suss24-Jan-02 15:18 
GeneralSkin a window Pin
The_Server20-Jan-02 12:12
The_Server20-Jan-02 12:12 
GeneralRe: Skin a window Pin
Christopher Lord20-Jan-02 12:32
Christopher Lord20-Jan-02 12:32 
GeneralRe: Skin a window Pin
Ravi Bhavnani20-Jan-02 12:44
professionalRavi Bhavnani20-Jan-02 12:44 
GeneralRe: Skin a window ( * Explorer Window *) Pin
The_Server20-Jan-02 13:31
The_Server20-Jan-02 13:31 
GeneralRe: Skin a window ( * Explorer Window *) Pin
Christopher Lord20-Jan-02 14:48
Christopher Lord20-Jan-02 14:48 
GeneralRe: Skin a window ( * Explorer Window *) Pin
The_Server20-Jan-02 19:20
The_Server20-Jan-02 19:20 
QuestionSimple mp3 playback? Pin
20-Jan-02 11:55
suss20-Jan-02 11:55 
I have a program where I want an mp3 audio file played in the background at start up and repeated until the program is closed. For now though, I have a menu option which will start the playing of the mp3 (although it will still play in the background without the bar shown)

I added the following function which I got from this program here ( http://www.codeproject.com/audio/mp3player.asp#xx88328xx ), but I can't seem to get it working. I included the vfw.h and put VFW32.lib in the linker's space as well.

When I run this program I get a "memory could not be read" error.

void CChildView::OnPlay()
{
m_Video = NULL;
if(m_Video == NULL)
{
m_Video = MCIWndCreate(this->GetSafeHwnd(),
AfxGetInstanceHandle(),
WS_CHILD | WS_VISIBLE|MCIWNDF_NOMENU, m_Path);

}
else
{
MCIWndHome(m_Video);
}
MCIWndPlay(m_Video);
}


Am I using the wrong function for this or am I simply using the right function wrongly?
Confused | :confused:
AnswerRe: Simple mp3 playback? Pin
Christian Graus20-Jan-02 11:59
protectorChristian Graus20-Jan-02 11:59 
GeneralI saw that but... Pin
20-Jan-02 12:14
suss20-Jan-02 12:14 
GeneralGetting MFC controls Pin
Steve Severance20-Jan-02 7:28
Steve Severance20-Jan-02 7:28 
GeneralRe: Getting MFC controls Pin
Ravi Bhavnani20-Jan-02 11:25
professionalRavi Bhavnani20-Jan-02 11:25 
GeneralRe: Getting MFC controls Pin
Steve Severance20-Jan-02 14:36
Steve Severance20-Jan-02 14:36 
GeneralRe: Getting MFC controls Pin
Ravi Bhavnani21-Jan-02 1:37
professionalRavi Bhavnani21-Jan-02 1:37 
GeneralRe: Getting MFC controls Pin
Jay Beckert20-Jan-02 16:56
Jay Beckert20-Jan-02 16:56 
GeneralRe: Getting MFC controls Pin
Roger Allen21-Jan-02 2:26
Roger Allen21-Jan-02 2:26 
GeneralRe: Getting MFC controls Pin
Anna-Jayne Metcalfe21-Jan-02 4:09
Anna-Jayne Metcalfe21-Jan-02 4:09 
GeneralReport Pin
Drawil20-Jan-02 7:16
Drawil20-Jan-02 7:16 
GeneralRe: Report Pin
Bernhard20-Jan-02 19:27
Bernhard20-Jan-02 19:27 
GeneralRe: Report Pin
Drawil21-Jan-02 0:39
Drawil21-Jan-02 0:39 
GeneralRe: Report Pin
Bernhard21-Jan-02 3:05
Bernhard21-Jan-02 3:05 
QuestionBold and regular text in CToolTipCtrl? Pin
User 665820-Jan-02 7:04
User 665820-Jan-02 7:04 
Questionselect * from table1 where field1= variable,why error? Pin
NowOKcom20-Jan-02 7:00
NowOKcom20-Jan-02 7:00 
AnswerRe: select * from table1 where field1= variable,why error? Pin
Christopher Lord20-Jan-02 12:38
Christopher Lord20-Jan-02 12:38 
GeneralNo separators on toolbars Pin
Jon Newman20-Jan-02 6:59
Jon Newman20-Jan-02 6:59 

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.