GnuWin

An import library for use with Microsoft Visual Studio can be built with the MS application lib.exe (which also needs link.exe), that used to be freely available from the Microsoft Platform SDK in the MS Development Network. An import library for use with Borland C++ can be built with the Borland program implib.exe, freely available as part of the Borland C++ Builder Compiler. The shell script dll2lib shows the details. In particular for use with BCC, you may have to change the header files so that for each function they explicitly declare the dllexport and dllimport storage-class attributes, in the same way as used to be the case for Mingw when importing static data; see also the documentation at MSDN for Visual Studio 6 and Visual Studio 8.