: : : I want to play a wav file in my visual C++ program. I havent been able to find any examples of this. Can any one help me ? Thanks
: : :
: :
Try this:
: :
: : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_playsound.asp
: :
: :
:
:
: I am trying to do this with a simple dialog program using MFC with visual studios 6.0. I am using a win 98 platform.
:
:
: I tried:
:
: PlaySound("test.wav", NULL, SND_FILENAME | SND_ASYNC);
:
:
: At the top of the file that I am trying to use the Playsound function, i added the following:
:
: #include "Windows.h"
: #include "Mmsystem.h"
:
:
: I am getting the following error:
:
: drawDlg.obj : error LNK2001: unresolved external symbol __imp__PlaySoundA@12
:
:
:
:
:
: Any ideas ?
:
: Thanks
:
:
You'll need to link your project with winmm.lib
To understand recursive, first you need to understand recursive