|
-
July 28th, 1999, 02:23 PM
#1
.wav files
how would i implement a wav file in a dialog?
-
July 29th, 1999, 09:10 AM
#2
Re: .wav files
Not sure what you're asking.
If you want a dialog that 'plays' wav files the easiest way would be to embed an OLE object in the dialog that is linked to a server that will play the file for you
-
July 29th, 1999, 09:33 AM
#3
Re: .wav files
Not sure what you mean either but if you have a dialog based app and want it to play a wav, say on start up then make sure you use:
#include "mmsystem.h" and add the winmm.lib in the Project, Settings, Link tab, object/library modules box. (VC++ ver 6)
Put the:
PlaySound("yourfile.wav", NULL, SND_FILENAME | SND_SYNC);
in say OnInitDialog()
SND_SYNCH plays the sound then the dialog whereas SND_ASYNC displays the dialog at the same time.
Hope that may be of help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|