을 클릭 버튼에 사운드를 추가하는 간단한 방법은 내가 오류vb.net
Declare Function apisndPlaySound Lib "winmm" Alias "sndPlaySoundA" _
(ByVal filename As String, ByVal snd_async As Long) As Long
Function PlaySound(ByVal sWavFile As String)
' Purpose: Plays a sound.
' Argument: the full path and file name.
If apisndPlaySound(sWavFile, 1) = 0 Then
MsgBox("The Sound Did Not Play!")
End If
End Function
호출을 얻고 나는이 온라인을 발견이
을하는 간단한 방법이 있나요인가 PInvoke 함수 'WindowsApplication3! WindowsApplication3.Module1 :: apisndPlaySound'가 스택의 불균형을 일으켰습니다. 관리되는 PInvoke 서명이 관리되지 않는 대상 서명과 일치하지 않기 때문일 수 있습니다. PInvoke 서명의 호출 규칙 및 매개 변수가 대상 관리되지 않는 시그니처와 일치하는지 확인하십시오.
도움이 되었습니까? 문제가 해결 되었습니까? –