CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: .wav files

  1. #1
    Guest

    .wav files

    how would i implement a wav file in a dialog?


  2. #2
    Guest

    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


  3. #3
    Guest

    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
  •  





Click Here to Expand Forum to Full Width

Featured