From: ismaelj AT hotmail DOT com ("Ismael Jurado") Subject: Re: winspool.lib 9 Apr 1997 21:33:50 -0700 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <199704092038.NAA19073.cygnus.gnu-win32@f20.hotmail.com> Content-Type: text/plain X-Originating-IP: [194.179.125.60] Original-To: root AT jacob DOT remcomp DOT fr Original-Cc: gnu-win32 AT cygnus DOT com Original-Sender: owner-gnu-win32 AT cygnus DOT com >Has anybody here done the import lib for winspool.drv? >I have discovered to my dismay, that Microsoft has defined the exports >without the '@' kludge. I.e. the export is named >_EnumPrinterDriversA >but this function is _stdcall, so my compiler (as probably gcc too) >generates a call to a function : >_EnumPrinterDriversA AT 28 > ... I don't know if this will help you but to generate a library file from a DLL, first you need the def file, that can be generated whith my IMPDEF.C (I have posted a revision of it) or use the IMPDEF.EXE that comes whith the LCC distribuition: IMPDEF winspool.drv > winspool.def Then use dlltool to generate the lib: dlltool --dllname winspool.drv --def winspool.def --output-lib libkernel32.a -k and that's all! Ismael Jurado ismael DOT AT hotmail DOT com --------------------------------------------------------- Get Your *Web-Based* Free Email at http://www.hotmail.com --------------------------------------------------------- - 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".