|
From: Brian D. <br...@de...> - 2006-03-26 07:58:27
|
Paulo Araya wrote: > Wich is the library to use PlaySound()? You can answer this yourself for any function by reading the copious documentation at MSDN. A google search of "site:msdn.microsoft.com <name of function>" will almost always return the desired page as the first hit. For every function MSDN will list any required headers that need to be included and what library to link against. If MSDN lists Foo.lib then add -lfoo to the end of the link command line. Certain libraries (namely user32, kernel32, advapi32, and shell32; as well as gdi32 and comdlg32 if -mwindows was specified) you never need to specify since they are included in the specs file and will be effectively always present on the link command line. You should always read the MSDN documentation for every win32 function before using it, as it will often contain important information about the parameters or return value, and/or how to properly use the function. Brian |