title: Linking to winmm.dll in Visual Studio 2013 Express for mciSendString
body: <p>I am trying to use mciSendString in visual studio express 2013 (Visual C++) but I keep getting an error</p>
  
  <pre><code>Error   1   error C3861: 'mciSendStringA': identifier not found
  </code></pre>
  
  <p>I assume this i because I have not linked to the correct dll, but I cannot find any details online or on msdn about how to link to the dll. It seems quite strange that there wouldn't be more obvious documentation about this. Can someone tell me how to link to the dll?</p>
  
  <p>EDIT:</p>
  
  <p>Here is the code I am trying to run:</p>
  
  <pre><code>#include &lt;Windows.h&gt;
  #include &lt;iostream&gt;
  #include &lt;mmsystem.h&gt;
  
  extern char command1[] = "open C:\\boing.mp3 type MPEGVideo alias 0";
  extern char command2[] = "play 0 from 0";
  
  int main()
  {
      mciSendStringA(command1, NULL, 0, 0);
      mciSendStringA(command2, NULL, 0, 0);
  }
  </code></pre>