title: Application works in visual studio but release/debug exe does not
body: <p>I am making a game using <code>dx11</code>. When I compile and run the code in visual studio it works fine however if I try and run the code from the .exe file in either the debug or release folders I got the following error:</p>
  
  <pre><code>"Could not initialize direct sound"
  </code></pre>
  
  <p>I have not moved the folders/directories at all.</p>
  
  <p>Is this something to do with direct sound not being compatible with <code>dx11</code>? If so why would it still run inside visual studio.</p>
  
  <p>I am using MS Visual Studio 10. My direct sound class has the following:</p>
  
  <pre><code>#pragma comment(lib, "dsound.lib")
  #pragma comment(lib, "dxguid.lib")
  #pragma comment(lib, "winmm.lib")
  #include &lt;windows.h&gt;
  #include &lt;mmsystem.h&gt;
  #include &lt;dsound.h&gt;
  #include &lt;stdio.h&gt;
  </code></pre>
  
  <p>Advance Thanks</p>