Windows Develop Bookmark and Share   
 index > Windows Forms General > DirectSound with no DirectX
 

DirectSound with no DirectX

Hi All,
I'm writing an app that creates tones at various levels and I'm using DirectSound to do this. I have that portion working on my machine. However, the target machine doesn't have DirectX installed and it failed when I tried. I downloaded the DirectX SDK. What I'm woundering, can I place the DSound.dll in my toolbox and then drop it in the form and have it work on the target machine? I'm new at this so if any help would be appricated. Sorry if I posted this in the wrong forum. Thanks!!

P.S. I'm using VB.Net 2005 and I have added
Imports Microsoft.DirectX
Imports Microsoft.DirectX.DirectSound

Can you please repeat the part after, "Listen carefully"?
  • Edited byAB3AI Tuesday, April 14, 2009 1:16 AMAdded P.S.
  •  
AB3AI  Tuesday, April 14, 2009 12:46 AM
You can ask questions about DirectX at forums.xna.com. The managed extensions for DirectX are obsolete and no longer ship since the August 2007 release. One possible way to get them deployed that I see is to set the Copy Local property to False. Open the References node in the Solution Explorer window first. That puts a copy of the required assembly (Microsoft.DirectX.DirectSound.dll) in your build directory. Copy it along with your .exe to the target machine.
Hans Passant.
  • Marked As Answer byAB3AI Wednesday, April 15, 2009 2:23 AM
  •  
nobugz  Tuesday, April 14, 2009 2:30 AM
You can ask questions about DirectX at forums.xna.com. The managed extensions for DirectX are obsolete and no longer ship since the August 2007 release. One possible way to get them deployed that I see is to set the Copy Local property to False. Open the References node in the Solution Explorer window first. That puts a copy of the required assembly (Microsoft.DirectX.DirectSound.dll) in your build directory. Copy it along with your .exe to the target machine.
Hans Passant.
  • Marked As Answer byAB3AI Wednesday, April 15, 2009 2:23 AM
  •  
nobugz  Tuesday, April 14, 2009 2:30 AM
nobugz,
Thanks for the reply and good info. The Copy Local proprty was set to fasle, once I set it to True I was able to export the Microsoft. DirectX and .DirectSound dlls. When I copied them with the .exe all worked great!! I wasn't able to get the levels I need. Now it's time to design a audio amp circuit :)
Thanks for your help!!
Can you please repeat the part after, "Listen carefully"?
AB3AI  Wednesday, April 15, 2009 2:28 AM

You can use google to search for other answers

Custom Search

More Threads

• application windows resize
• form focusing after synchronous event
• Custom Button with images
• DragDrop object with interface
• Trouble drawing theme elements transparently
• Loading a Form in Visual Studio 2005
• what should we use for validating users input
• Comparer Inconsistency
• A generic error occurred in GDI+. while saving
• My computer loads slow from the splash screen