Click here to Skip to main content
15,919,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Arithmetic Expression Pin
Jon Hulatt20-Jan-02 21:58
Jon Hulatt20-Jan-02 21:58 
GeneralRe: Arithmetic Expression Pin
Christian Graus20-Jan-02 22:08
protectorChristian Graus20-Jan-02 22:08 
GeneralRe: Arithmetic Expression Pin
Jon Hulatt21-Jan-02 1:54
Jon Hulatt21-Jan-02 1:54 
GeneralRe: Arithmetic Expression Pin
Christian Graus21-Jan-02 5:45
protectorChristian Graus21-Jan-02 5:45 
GeneralArithmetic Pin
Geoffrey20-Jan-02 17:36
Geoffrey20-Jan-02 17:36 
GeneralRe: Arithmetic Pin
Christian Graus20-Jan-02 17:47
protectorChristian Graus20-Jan-02 17:47 
QuestionBest wat to download a file with http? Pin
Jay Beckert20-Jan-02 16:35
Jay Beckert20-Jan-02 16:35 
AnswerRe: Best wat to download a file with http? Pin
Michael Dunn20-Jan-02 16:55
sitebuilderMichael Dunn20-Jan-02 16:55 
GeneralRe: Best wat to download a file with http? Pin
Jay Beckert20-Jan-02 16:59
Jay Beckert20-Jan-02 16:59 
GeneralCopyMemory problems Pin
alex.barylski20-Jan-02 12:59
alex.barylski20-Jan-02 12:59 
GeneralRe: CopyMemory problems Pin
alex.barylski20-Jan-02 13:28
alex.barylski20-Jan-02 13:28 
Generalput images on GDI Pin
DiegoValdevino20-Jan-02 12:54
DiegoValdevino20-Jan-02 12:54 
GeneralRe: put images on GDI Pin
Christian Graus20-Jan-02 13:03
protectorChristian Graus20-Jan-02 13:03 
QuestionTopMost Maximized Window? Pin
DiegoValdevino20-Jan-02 12:50
DiegoValdevino20-Jan-02 12:50 
AnswerRe: TopMost Maximized Window? Pin
Andrew Peace20-Jan-02 14:39
Andrew Peace20-Jan-02 14:39 
Generalcreate an owned popup window Pin
20-Jan-02 12:18
suss20-Jan-02 12:18 
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 

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.