类型:转载 责任编辑:asp.net 日期:2007/05/23
热门软件下载:
我想直接用系统中的winmm.lib库,但在加载头文件<mmsystem.h>时,运行出错不知为什么。
error C2146: syntax error : missing ; before identifier MMVERSION
d:\microsoft visual studio\vc98\include\mmsystem.h(113) : fatal error C1004: unexpected end of file found
希望有人帮解决,也可以提供更好在游戏中处理声音的方法,本人不胜感激。
网友回答:
#include "mmsystem.h"
#pragma comment(lib,"winmm.lib")
应该没问题的啊,我经常这么用