title: How to access Qt's resource file in the c++ project?
body: <p>I have added a alert.wav sound file to the .qrc file. 
  Then I qmake the project to generate a VS project.</p>
  
  <p>I can actually see the alert.wav file in the solution explorer.
  Now the problem is to play this alert.wav file using windows's default API.</p>
  
  <p>I have tried this:</p>
  
  <pre><code>PlaySound(L"alert.wav", NULL, SND_RESOURCE | SND_ASYNC | SND_NOSTOP);
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>PlaySound(L":files/sound/alert.wav", NULL, SND_RESOURCE | SND_ASYNC | SND_NOSTOP);
  </code></pre>
  
  <p>But none of them works, I can actually play through the QSound by passing in ":files/sound/alert.wav".
  How could I play it through PlaySound? The only way I know is to play it as a file on the system, but that's not what I need.</p>