"unexpected end of file while looking for precompiled header directive"
for the file that got the error:
Project->Settings->select file on left->C/C++ tab->Category->Precompiled Headers->Not using precompiled headers
When building a DirectX program you get the following error:
program.obj : error LNK2001: unresolved external symbol _IID_IDirectDraw4 program.obj : error LNK2001: unresolved external symbol _DirectDrawCreate@12
#include "mmsystem.h" add library: winmm.lib
From a file:
PlaySound("d:\dmb\tmp\bounce.wav",NULL,SND_FILENAME);
From the system sounds:
PlaySound("SystemStart",NULL, SND_ALIAS|SND_ASYNC|SND_NOSTOP);
For a list of other system sounds see registry entry:
HKEY_CURRENT_USERAppEventsEventLabels (SystemStart,SystemExit, etc)