Mail Archives: djgpp/1997/07/09/12:32:51
Lo Weiqi Gao <weiqigao AT a DOT crl DOT com>:
>Long answer: the function PlaySound() resides in a dll called
>MMSYSTEM.DLL. To link this function into your program, you need an
>import library (*.LIB in Visual C++ or lib*.a for RSXNTDJ 1.3.1). As
>far as I can see, such an import library is not supplied with RSXNTDJ
>1.3.1. RSXNTDJ 1.3.1 does include a tool makelib which makes the import
>library from the dll, however it doesn't work for MMSYSTEM.DLL,
>complaining that it is "not a valid Win32 file". Upon close inspection,
>we find that MMSYSTEM.DLL is a 16-bit dll in the NE (Win31) format. And
>frankly, I don't know if I will ever be able to figure out how to use it
>with DJGPP 2.01/RSXNTDJ 1.3.1 (gcc being 32-bit only and all...).
Use MAKELIB on WINMM.DLL, which is the 32 bit side / counterpart of
MMSYSTEM.DLL.
Bye.
+- Conceived through intercalation and juxtaposition -+
| systems programmer / word player avant la lettre |
| proteus * worldaccess + nl |
+-----------------------------------------------------+
- Raw text -