敬业的IT人 >> 编程开发 >> VB >> 利用API函数播放Wav声音文件

利用API函数播放Wav声音文件

敬业的IT人 互联网 佚名 2008-4-17 19:52:47

PrivateDeclareFunctionsndPlaySoundLib"Winmm.dll"Alias"sndPlaySoundA"(ByVallpszSoundNameAsString,ByValuFlagsAsLong)AsLong

PrivateSubCmdplay_Click()
DimSoundFileAsString,ResultAsLong
SoundFile="C:\Pwin98\Media\TheMicrosoftSound.WAV"
Result=sndPlaySound(SoundFile,1)
EndSub

粤ICP备06119539号
Copyright CiscoSky.Org,Some Rights Reserved.
Email:me1228#tom.com