hello everybody,
i made a project in visual basic 2005 with sounds using DirectX
for example :
filepath = My.Application.Info.DirectoryPath
filepath = filepath.Substring(0, filepath.Length - 9)
Dim MySound1 As New Microsoft.DirectX.AudioVideoPlayback.Audio(filepath & "sounds\Am.wav")
MySound1.Play()

the project seems to work fine but when i tried to publish it the sounds don't play and there is an error like this :
Error in the application.
-2147220970 (VFW_E_NOT_FOUND)
at Microsoft.DirectX.AudioVideoPlayback.Audio.Open(String fileName, Boolean autoRun)
at Microsoft.DirectX.AudioVideoPlayback.Audio..ctor(String fileName)
at guitarlessons.Form1.Button4_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

And of course some other errors just like this one
What should i do?...please help me this assay is my final thesis ...
sorry for my english
theodora