title: It said there's something wrong with the header file, mmsystem.h, i can't use PlaySound()
body: <pre><code>#include &lt;iostream&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;mmsystem.h&gt;
  #include &lt;string&gt;
  #include &lt;windows.h&gt;
  #pragma comment (lib, "winmm.lib")
  
  using namespace std;
  
  int main() {
      PlaySound(TEXT("Happy Birthday To You.wav"), NULL, SND_SYNC);
      system("pause");
      return 0;
  }
  </code></pre>
  
  <blockquote>
    <p>C:\Program Files (x86)\CodeBlocks\MinGW\include\mmsystem.h|905|error: 'DWORD' does not name a type|</p>
    
    <p>C:\Program Files (x86)\CodeBlocks\MinGW\include\mmsystem.h|906|error: 'UINT' does not name a type|</p>
    
    <p>C:\Program Files (x86)\CodeBlocks\MinGW\include\mmsystem.h|907|error: typedef 'UINT' is initialized (use decltype instead)|</p>
  </blockquote>
  
  <p>It just came up tons of the errors in the header file like these, I linked to <code>-lwinmm</code> and checked the library, it still pops up.</p>
  
  <p>PS I am using code blocks.</p>