Jan Knepper's Digital Mars User Page

implib.zip

This implib.exe is a modified version of the original implib.exe that comes with the compiler. It has been modified to add the @n decoration for importing SYSTEM .DLL's. To do this properly it will need to know where headers files with the function declarations are. It will parse those header files using the Digital Mars C++ pre compiler. It also needs a implib.ini which contains the stack sizes for the parameter types.

Digital Mars Import Library Manager Version 7.5B4n
Copyright (C) Digital Mars 1999-2002.  All Rights Reserved.
Modified by Jan Knepper
Usage:
        IMPLIB [switches] implibname.lib [ file.dll | file.def ]
Switches:
        /?          Print this message
        /b          Batch
        /h          Print this message
        /i          Ignore case of symbols
        /noi        Be case sensitive. Mark library as case sensitive
        /nowep      Ignore WEP
        /p:number   Set page size to number (a power of 2)
        /system     NT system DLL
        /suffix     Try to add the @n suffix
        /v          Verbose operation
        /I<path>    Search through the files in <path> to find prototypes
                    for the exported functions. This is required to
                    determine the 'n' for the @n suffix.
                    <path> can be used as s:\include or
                    s:\include;s:\include\win32
        /dump       Dump
        /def        Create a .def file (will require a better header, but
                    could be used to create the .lib with the original
                    IMPLIB).
        /test       Create a .cpp file which can be compiled and linked
                    against the generated .lib file for testing purposes.

Examples:
   implib /system /v /suffix /Is:\include\win32 user32.lib user32.dll
   implib /system /v /suffix /Ie:\yourlib\include yourlib.lib yourlib.dll