Im trying to playback sound using Directsound from DirectX.
I have downloaded the latest DirectX-SDK. I installed the contained DirectX-Version, then I used 7Zip to extract the cab-files.
In VisualStudio I created a project that holds a reference to Microsoft.Directx.directsound.dll
Right now the sourcecode is nothing more than:
When I try to run this I get the Errormessage:
"Could not load file or assembly 'Microsoft.DirectX.DirectSound.dll' or one of its dependencies. A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A)."
Could anyone help me figure out what I'm doing wrong?
I have downloaded the latest DirectX-SDK. I installed the contained DirectX-Version, then I used 7Zip to extract the cab-files.
In VisualStudio I created a project that holds a reference to Microsoft.Directx.directsound.dll
Right now the sourcecode is nothing more than:
VB.NET:
Imports Microsoft.DirectX.DirectSound
Public Class Form1
Dim _dev As New Device
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
_dev = New Device
_dev.SetCooperativeLevel(Me.Handle, CooperativeLevel.Priority)
End Sub
End Class
When I try to run this I get the Errormessage:
"Could not load file or assembly 'Microsoft.DirectX.DirectSound.dll' or one of its dependencies. A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A)."
Could anyone help me figure out what I'm doing wrong?