PlaySound error
error LNK2019: 无法解析的外部符号 __imp__PlaySoundW@12,该符号在函数 "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) 中被引用
解决办法是:
在源程序开头加上这样一句话:
#include<mmsystem.h>
#pragma comment(lib,"winmm.lib")