I'm trying to run .wav file from an MFC app writtten in VC++. I've searched through the board and found that I should use PlaySound, but I don't know how to include the winmm.dll or winmm library in the project.
Could someone please help?
On the menu select:
project -> settings
click the link tab
select general from the category list box
add winnmm.lib to the object/library modules text box
Hope this helps
That is what I was trying, but I kept getting an unrecognised... message about PlaySound when compiling.
I've actually solved it now... I ran a search for files containing the text "PlaySound" in the include directory, and mmsystem.h came back. When I included that header file, and did what you said about the winmm.lib, PlaySound worked!!
Thanks for your help.