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")

posted @ 2012-12-01 10:13  完美科技  阅读(302)  评论(0编辑  收藏  举报