cannam@128: Building instructions for the DLL versions of Zlib 1.2.8 cannam@128: ======================================================== cannam@128: cannam@128: This directory contains projects that build zlib and minizip using cannam@128: Microsoft Visual C++ 9.0/10.0. cannam@128: cannam@128: You don't need to build these projects yourself. You can download the cannam@128: binaries from: cannam@128: http://www.winimage.com/zLibDll cannam@128: cannam@128: More information can be found at this site. cannam@128: cannam@128: cannam@128: cannam@128: cannam@128: cannam@128: Build instructions for Visual Studio 2008 (32 bits or 64 bits) cannam@128: -------------------------------------------------------------- cannam@128: - Uncompress current zlib, including all contrib/* files cannam@128: - Compile assembly code (with Visual Studio Command Prompt) by running: cannam@128: bld_ml64.bat (in contrib\masmx64) cannam@128: bld_ml32.bat (in contrib\masmx86) cannam@128: - Open contrib\vstudio\vc9\zlibvc.sln with Microsoft Visual C++ 2008 cannam@128: - Or run: vcbuild /rebuild contrib\vstudio\vc9\zlibvc.sln "Release|Win32" cannam@128: cannam@128: Build instructions for Visual Studio 2010 (32 bits or 64 bits) cannam@128: -------------------------------------------------------------- cannam@128: - Uncompress current zlib, including all contrib/* files cannam@128: - Open contrib\vstudio\vc10\zlibvc.sln with Microsoft Visual C++ 2010 cannam@128: cannam@128: Build instructions for Visual Studio 2012 (32 bits or 64 bits) cannam@128: -------------------------------------------------------------- cannam@128: - Uncompress current zlib, including all contrib/* files cannam@128: - Open contrib\vstudio\vc11\zlibvc.sln with Microsoft Visual C++ 2012 cannam@128: cannam@128: cannam@128: Important cannam@128: --------- cannam@128: - To use zlibwapi.dll in your application, you must define the cannam@128: macro ZLIB_WINAPI when compiling your application's source files. cannam@128: cannam@128: cannam@128: Additional notes cannam@128: ---------------- cannam@128: - This DLL, named zlibwapi.dll, is compatible to the old zlib.dll built cannam@128: by Gilles Vollant from the zlib 1.1.x sources, and distributed at cannam@128: http://www.winimage.com/zLibDll cannam@128: It uses the WINAPI calling convention for the exported functions, and cannam@128: includes the minizip functionality. If your application needs that cannam@128: particular build of zlib.dll, you can rename zlibwapi.dll to zlib.dll. cannam@128: cannam@128: - The new DLL was renamed because there exist several incompatible cannam@128: versions of zlib.dll on the Internet. cannam@128: cannam@128: - There is also an official DLL build of zlib, named zlib1.dll. This one cannam@128: is exporting the functions using the CDECL convention. See the file cannam@128: win32\DLL_FAQ.txt found in this zlib distribution. cannam@128: cannam@128: - There used to be a ZLIB_DLL macro in zlib 1.1.x, but now this symbol cannam@128: has a slightly different effect. To avoid compatibility problems, do cannam@128: not define it here. cannam@128: cannam@128: cannam@128: Gilles Vollant cannam@128: info@winimage.com