Hi, I have a general question. This will only compile when I include winMM.lib as part of the project, i.e. the file is included within the solution explorer. I call the function waveOuGetNumDevs(); which is defined in MMSystem.h and is automatically included when you include windows.h and the library is winMM.lib. However, I should not have to explicitly include the winMM.lib within my project. I have checked all the library paths which the linker will search through when looking for winMM.lib to match it with the declaration from MMSystem.h, and the correct path is there. I have not had to do this with any other of my function calls in my project, the linker has always been able to match the header with the lib fine. Within the project file visual studio has included this

<File
RelativePath="C:\Program Files\Microsoft SDK\Lib\WinMM.Lib">
</File>
Now, if I remove this lib file from the project again, a linker error will be given again. Here below is a basic snippet:


Code:
#include <tchar.h>
#include <windows.h>

int _tmain(int argc, _TCHAR* argv[])
{
  unsigned a = waveInGetNumDevs();
  return 0;
}