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