+ Reply to Thread
Results 1 to 3 of 3

Thread: How to play a wav file in MFC application?

  1. #1

    How to play a wav file in MFC application?

    Hi All,

    I want to play a wav file in MFC application.

    How can I do this?

    Help.

  2. #2
    You can use PlaySound WIN32 API for this purpose.

    Follow below link:
    http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx

    Code:
    void PlayWavFile(CString strWavFile)
    {
    	PlaySound(strWavFile, NULL, SND_FILENAME) ;
    }
    Hope this helps.

  3. #3
    Thank you buddy.

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts