delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/06/16/12:04:50

From: iblank AT hildesheim DOT sgh-net DOT de (Ingo Blank)
Subject: Re: mmsystem.dll corrupt when running a program compiling with mmsystem.{h,dll}
16 Jun 1998 12:04:50 -0700 :
Message-ID: <3585F7FA.BC2C8130.cygnus.gnu-win32@hildesheim.sgh-net.de>
References: <199806141541 DOT KAA26240 AT kenai DOT me DOT umn DOT edu>
Mime-Version: 1.0
To: "Curtis L. Olson" <curt AT me DOT umn DOT edu>
Cc: gnu-win32 AT cygnus DOT com

Remember that all Windows DLLs use the __stdcall conventions... (WINAPI)
Try to build your def with sndPlaySound@... and an alias to it !

Bye
Ingo B.


Curtis L. Olson wrote:

> I'm trying to build some code with the cygnus/egcs compiler that
> requires mmsystem.h and mmsystem.dll
>
> I grabbed a copy of mmsystem.h from the Twin source:
>
>     http://www.winehq.com/Twin/
>
> I then grabbed a copy of mmsystem.dll from my win95 machine.
>
> impdef wouldn't generate a list of functions from the DLL because my
> mmsystem.dll wasn't a "PE" archive (or something to that effect.)
>
> So I went ahead and created a mmsystem.def file based on just the
> handfull of calls that I use in my software, ignoring all the rest.
>
> Then, to create the libmmsystem.a I ran:
>
>     dlltool -k --def mmsystem.def --output-exp mmsystem.exp \
>         --output-lib libmmsystem.a --dllname mmsystem.dll
>
> This all seemed to happily work, and created the libmmsystem.a.  With
> this I was able to compile and link my C/C++ code and produce an
> executable.
>
> However, when I try to run the executable on the same system where my
> mmsystem.dll originated, I get a message saying my "mmsystem.dll is
> corrupt and should be reinstalled."
>
> I probably don't understand all the subtleties of dlltool and linking
> to dll's in win95, but I have gotten this same basic procedure to work
> with glut/glu/opengl.
>
> Has anyone been down this road before with any success?
>
> Thanks,
>
> Curt.
> --
> Curtis Olson                        University of MN, ME Dept.
> curt AT me DOT umn DOT edu
> http://www.menet.umn.edu/~curt      Try Linux!
> -
> For help on using this list (especially unsubscribing), send a message to
> "gnu-win32-request AT cygnus DOT com" with one line of text: "help".
>
> .



-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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