Go Premium for a chance to win a PS4. Enter to Win


How do i play a wavefile using MFC?

Posted on 1998-12-27
Medium Priority
Last Modified: 2013-11-20
How do i play a wavefile using MFC? How does the sndPlaySound command work?
Question by:byrdal
1 Comment

Accepted Solution

ppeck earned 150 total points
ID: 1326782
hi byrdal,

there are no MFC classes dealing with wav files.

the sndPlaySound() function simply plays a wav file and it is a very comfortable way
to do that. however, you should only play short wav files with it, since they have to
fit into physical memory. moreover, the documentation says

> sndPlaySound is being maintained for backward compatibility.

so use the PlaySound() function instead (which offers basically the same functionality).

if you need advanced output facilities, check out the sound output class at:




Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question