久久久国产精品视频袁燕,99re久久精品国产,亚洲欧美日韩国产综合v,天天躁夜夜躁狠狠久久,激情五月婷婷激情五月婷婷

  • 回復(fù)
  • 收藏
  • 點(diǎn)贊
  • 分享
  • 發(fā)新帖

建立VB6資源文件播放wav文件,出現(xiàn)“編譯錯(cuò)誤”,錯(cuò)在哪里?

 先用VB6資源編輯器建立了一個(gè)包含WAV文件的資源文件,然后再窗體的按鈕的click事件上寫入以下代碼,按F5出現(xiàn)運(yùn)行出現(xiàn)“編譯錯(cuò)誤:在end sub,end End function或end屬性后面只能出現(xiàn)注釋!”。請(qǐng)講解為盼。按鈕click事件代碼如下:



Private Sub Command1_Click()

Option Explicit

Private Declare Function GetSystemDefaultLCID Lib "kernel32" () As Long

Private Declare Function sndPlaySoundFromMemory Lib "winmm.dll" Alias "sndPlaySoundA" (lpszSoundName As Any, ByVal uFlags As Long) As Long

Private Const SND_ASYNC = &H1&

Private Const SND_MEMORY = &H4&

'Private Sub Command1_Click()

Dim bArr() As Byte

bArr = LoadResData(101, "wave")

sndPlaySoundFromMemory bArr(0), SND_ASYNC Or SND_MEMORY

End Sub



End Sub
全部回復(fù)(1)
正序查看
倒序查看
jyq001
LV.3
2
2010-03-13 14:51

截圖如下:

  

0
回復(fù)
發(fā)