Hello,
In VB6, I used an API to play sounds.
Declare Auto Function PlaySound Lib "winmm.dll" (ByVal name
As String, ByVal hmod As Integer, ByVal flags As Integer) As Integer
Public Const SND_SYNC As Long = &H0
Public Const SND_ASYNC As Long = &H1
Public Const SND_FILENAME As Long = &H20000
Public Const SND_RESOURCE As Long = &H40004
Is there a better, more .NET-way, to have the same result in VB.NET, or is it still OK to use the API-call?
Many thanks and greetings from Brugge (Bruges - Belgium),
Michel
In VB6, I used an API to play sounds.
Declare Auto Function PlaySound Lib "winmm.dll" (ByVal name
As String, ByVal hmod As Integer, ByVal flags As Integer) As Integer
Public Const SND_SYNC As Long = &H0
Public Const SND_ASYNC As Long = &H1
Public Const SND_FILENAME As Long = &H20000
Public Const SND_RESOURCE As Long = &H40004
Is there a better, more .NET-way, to have the same result in VB.NET, or is it still OK to use the API-call?
Many thanks and greetings from Brugge (Bruges - Belgium),
Michel