/**********************感谢关注********************/
///////////////////////Creamdog/////////////////////BOOL PlaySound(
LPCSTR pszSound,
HMODULE hmod,
DWORD fdwSound
);
///////////////////////Creamdog/////////////////////BOOL PlaySound(
LPCSTR pszSound,
HMODULE hmod,
DWORD fdwSound
);
G:\vc++\gf\gfDlg.cpp(176) : error C2065: 'SND_SYNC' : undeclared identifier为什么?
Mmsystem.h
MCIDEVICEID IDDevice,
UINT uMsg,
DWORD fdwCommand,
DWORD dwParam
)
MCIDEVICEID IDDevice,
UINT uMsg,
DWORD fdwCommand,
DWORD dwParam
);
////////////////////////Creamdog////////////////////////在头文件中加入Mmsystem.h
再在链接里加上Winmm.lib
好了,你可以结贴了
**表示你的wav文件的路径.当然条件通上