my code for PlaySound is like this:
Code:
#include <mmsystem.h> 
int main() 
{
PlaySound(L"release\\test16bit.wav", NULL, SND_SYNC); 
return 0; 
}
when I build it, I always got error like this:
Please help, I cannot figure out why I alway got this kind of error
Thank you very much!
Code:
BUILD: [01:0000000030:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(73) : error C2146: syntax error : missing ';' before identifier 'MMVERSION'
BUILD: [01:0000000031:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(89) : error C2146: syntax error : missing ';' before identifier 'ms'
BUILD: [01:0000000032:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(90) : error C2146: syntax error : missing ';' before identifier 'sample'
BUILD: [01:0000000033:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(91) : error C2146: syntax error : missing ';' before identifier 'cb'
BUILD: [01:0000000034:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(92) : error C2146: syntax error : missing ';' before identifier 'ticks'
BUILD: [01:0000000035:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(97) : error C2146: syntax error : missing ';' before identifier 'hour'
BUILD: [01:0000000036:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(98) : error C2146: syntax error : missing ';' before identifier 'min'
BUILD: [01:0000000037:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(99) : error C2146: syntax error : missing ';' before identifier 'sec'
BUILD: [01:0000000038:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(100) : error C2146: syntax error : missing ';' before identifier 'frame'
BUILD: [01:0000000039:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(101) : error C2146: syntax error : missing ';' before identifier 'fps'
BUILD: [01:0000000040:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(102) : error C2146: syntax error : missing ';' before identifier 'dummy'
BUILD: [01:0000000041:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(104) : error C2146: syntax error : missing ';' before identifier 'pad'
BUILD: [01:0000000042:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(111) : error C2146: syntax error : missing ';' before identifier 'songptrpos'
BUILD: [01:0000000043:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(114) : error C2143: syntax error : missing ';' before '*'
BUILD: [01:0000000044:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(114) : error C2143: syntax error : missing ';' before '*'
BUILD: [01:0000000045:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(241) : error C2065: 'HDRVR' : undeclared identifier
BUILD: [01:0000000046:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(254) : error C2146: syntax error : missing ';' before identifier 'dwDCISize'
BUILD: [01:0000000047:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(255) : error C2146: syntax error : missing ';' before identifier 'lpszDCISectionName'
BUILD: [01:0000000048:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(256) : error C2146: syntax error : missing ';' before identifier 'lpszDCIAliasName'
BUILD: [01:0000000049:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(257) : error C2146: syntax error : missing ';' before identifier 'dnDevNode'
BUILD: [01:0000000050:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(258) : error C2143: syntax error : missing ';' before '*'
BUILD: [01:0000000051:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(258) : error C2371: 'NEAR' : redefinition; different basic types
BUILD: [01:0000000053:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(258) : error C2143: syntax error : missing ';' before '*'
BUILD: [01:0000000054:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(258) : error C2086: 'int FAR' : redefinition
BUILD: [01:0000000056:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(292) : error C2146: syntax error : missing ';' before identifier 'dwDCISize'
BUILD: [01:0000000057:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(293) : error C2146: syntax error : missing ';' before identifier 'lpszDCISectionName'
BUILD: [01:0000000058:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(294) : error C2146: syntax error : missing ';' before identifier 'lpszDCIAliasName'
BUILD: [01:0000000059:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(295) : error C2143: syntax error : missing ';' before '*'
BUILD: [01:0000000060:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(295) : error C2371: 'NEAR' : redefinition; different basic types
BUILD: [01:0000000062:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(295) : error C2143: syntax error : missing ';' before '*'
BUILD: [01:0000000063:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(295) : error C2086: 'int FAR' : redefinition
BUILD: [01:0000000065:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(312) : error C2065: 'CALLBACK' : undeclared identifier
BUILD: [01:0000000066:ERRORE] C:\WINCE600\public\common\sdk\inc\mmsystem.h(312) : error C2065: 'DRIVERPROC' : undeclared identifier