playing and audio "wav" file
-
hi i am looking to read an wav file into an activeX windows mediaplayer i know the location of my file, but i dont know how to get it to play it seems to open, but what do i need to do to make it play. help....i am a novice so be gentle this is what i have got so far, im missing the bit i need to put in the try bit char* message = ("D:\\callparent\\new_name\\020612125252-33381.wav"); CFile myFile(message, CFile::modeCreate|CFile::modeNoTruncate|CFile::modeWrite|CFile::typeBinary|CFile::shareDenyNone); try { return TRUE; } catch(CException* pE) { pE->ReportError(); pE->Delete(); myFile.Close(); return FALSE; } ;)
-
hi i am looking to read an wav file into an activeX windows mediaplayer i know the location of my file, but i dont know how to get it to play it seems to open, but what do i need to do to make it play. help....i am a novice so be gentle this is what i have got so far, im missing the bit i need to put in the try bit char* message = ("D:\\callparent\\new_name\\020612125252-33381.wav"); CFile myFile(message, CFile::modeCreate|CFile::modeNoTruncate|CFile::modeWrite|CFile::typeBinary|CFile::shareDenyNone); try { return TRUE; } catch(CException* pE) { pE->ReportError(); pE->Delete(); myFile.Close(); return FALSE; } ;)
What is this "activeX windows mediaplayer"? Is it a control in your dialog box? How did you add it? Please provide more info. Regards, Alvaro
When birds fly in the right formation, they need only exert half the effort. Even in nature, teamwork results in collective laziness. -- despair.com
-
hi i am looking to read an wav file into an activeX windows mediaplayer i know the location of my file, but i dont know how to get it to play it seems to open, but what do i need to do to make it play. help....i am a novice so be gentle this is what i have got so far, im missing the bit i need to put in the try bit char* message = ("D:\\callparent\\new_name\\020612125252-33381.wav"); CFile myFile(message, CFile::modeCreate|CFile::modeNoTruncate|CFile::modeWrite|CFile::typeBinary|CFile::shareDenyNone); try { return TRUE; } catch(CException* pE) { pE->ReportError(); pE->Delete(); myFile.Close(); return FALSE; } ;)
Use: #include sndPlaySound(...) without any fileopen, etc. Best regards, Alex. ================================ Useful links