title: playing a .wav file
body: <p>I'm using visual studio 2010 express and I'm trying to write a simple program that will repeat a wave file 5 times(I'm running a windows xp sp3).</p>
  
  <p>This is as far as I got:</p>
  
  <pre><code>#include "stdafx.h"
  #include &lt;windows.h&gt;
  #include &lt;iostream&gt;
  
  using namespace std;   
  int main ()
  {
      int a = 5;
          while(a &gt;= 1){
              cout &lt;&lt; "It's a wav file";
              PlaySound(L"SomeAudioFile-01.wav", NULL, SND_FILENAME);
              --a;
          }
      return 0;
   }
  </code></pre>
  
  <p>The problem is I keep getting this error message when I'm building it:</p>
  
  <pre>
  1>------ Build started: Project: It's a F**king Country, Configuration: Release Win32 --    ----
  1>  mycode.cpp
  1>..\..\..\..\..\Shaul's documents\Visual Studio 2010\Projects\MyProject\Release\SomeAudioFile-01.wav : fatal error LNK1136: invalid or corrupt file
  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  </pre>
  
  <p>The file is perfectly fine and plays with no problems whatsoever outside visual studio.</p>
  
  <p>Help would be truly appreciated.</p>