delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/09/12:32:51

From: blade DOT runner DOT shoots AT another DOT spam DOT bot (Alfons Hoogervorst)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Question about RSXNTDJ v 1.3 - hellowin.zip (0/1)
Date: Sun, 06 Jul 1997 20:36:38 GMT
Organization: The Programming with Puns Facility
Message-ID: <33c00132.29792237@news3.worldaccess.nl>
References: <33bc7a41 DOT 34121017 AT 207 DOT 172 DOT 3 DOT 53> <33BD957A DOT 646D5BCC AT a DOT crl DOT com>
NNTP-Posting-Host: 193.67.132.207
Lines: 22
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019