1*de1ce4f6SchristosBuilding instructions for the DLL versions of Zlib 1.2.10
2aaf4ece6Schristos========================================================
3aaf4ece6Schristos
4aaf4ece6SchristosThis directory contains projects that build zlib and minizip using
5*de1ce4f6SchristosMicrosoft Visual C++ 9.0/10.0.
6aaf4ece6Schristos
7aaf4ece6SchristosYou don't need to build these projects yourself. You can download the
8aaf4ece6Schristosbinaries from:
9aaf4ece6Schristos  http://www.winimage.com/zLibDll
10aaf4ece6Schristos
11aaf4ece6SchristosMore information can be found at this site.
12aaf4ece6Schristos
13aaf4ece6Schristos
14aaf4ece6Schristos
15*de1ce4f6Schristos
16*de1ce4f6Schristos
17*de1ce4f6SchristosBuild instructions for Visual Studio 2008 (32 bits or 64 bits)
18aaf4ece6Schristos--------------------------------------------------------------
19*de1ce4f6Schristos- Decompress current zlib, including all contrib/* files
20*de1ce4f6Schristos- Compile assembly code (with Visual Studio Command Prompt) by running:
21*de1ce4f6Schristos   bld_ml64.bat (in contrib\masmx64)
22*de1ce4f6Schristos   bld_ml32.bat (in contrib\masmx86)
23*de1ce4f6Schristos- Open contrib\vstudio\vc9\zlibvc.sln with Microsoft Visual C++ 2008
24*de1ce4f6Schristos- Or run: vcbuild /rebuild contrib\vstudio\vc9\zlibvc.sln "Release|Win32"
25aaf4ece6Schristos
26*de1ce4f6SchristosBuild instructions for Visual Studio 2010 (32 bits or 64 bits)
27*de1ce4f6Schristos--------------------------------------------------------------
28*de1ce4f6Schristos- Decompress current zlib, including all contrib/* files
29*de1ce4f6Schristos- Open contrib\vstudio\vc10\zlibvc.sln with Microsoft Visual C++ 2010
30aaf4ece6Schristos
31*de1ce4f6SchristosBuild instructions for Visual Studio 2012 (32 bits or 64 bits)
32*de1ce4f6Schristos--------------------------------------------------------------
33*de1ce4f6Schristos- Decompress current zlib, including all contrib/* files
34*de1ce4f6Schristos- Open contrib\vstudio\vc11\zlibvc.sln with Microsoft Visual C++ 2012
35*de1ce4f6Schristos
36*de1ce4f6SchristosBuild instructions for Visual Studio 2013 (32 bits or 64 bits)
37*de1ce4f6Schristos--------------------------------------------------------------
38*de1ce4f6Schristos- Decompress current zlib, including all contrib/* files
39*de1ce4f6Schristos- Open contrib\vstudio\vc12\zlibvc.sln with Microsoft Visual C++ 2013
40*de1ce4f6Schristos
41*de1ce4f6SchristosBuild instructions for Visual Studio 2015 (32 bits or 64 bits)
42*de1ce4f6Schristos--------------------------------------------------------------
43*de1ce4f6Schristos- Decompress current zlib, including all contrib/* files
44*de1ce4f6Schristos- Open contrib\vstudio\vc14\zlibvc.sln with Microsoft Visual C++ 2015
45aaf4ece6Schristos
46aaf4ece6Schristos
47aaf4ece6SchristosImportant
48aaf4ece6Schristos---------
49aaf4ece6Schristos- To use zlibwapi.dll in your application, you must define the
50aaf4ece6Schristos  macro ZLIB_WINAPI when compiling your application's source files.
51aaf4ece6Schristos
52aaf4ece6Schristos
53aaf4ece6SchristosAdditional notes
54aaf4ece6Schristos----------------
55aaf4ece6Schristos- This DLL, named zlibwapi.dll, is compatible to the old zlib.dll built
56aaf4ece6Schristos  by Gilles Vollant from the zlib 1.1.x sources, and distributed at
57aaf4ece6Schristos    http://www.winimage.com/zLibDll
58aaf4ece6Schristos  It uses the WINAPI calling convention for the exported functions, and
59aaf4ece6Schristos  includes the minizip functionality. If your application needs that
60aaf4ece6Schristos  particular build of zlib.dll, you can rename zlibwapi.dll to zlib.dll.
61aaf4ece6Schristos
62aaf4ece6Schristos- The new DLL was renamed because there exist several incompatible
63aaf4ece6Schristos  versions of zlib.dll on the Internet.
64aaf4ece6Schristos
65aaf4ece6Schristos- There is also an official DLL build of zlib, named zlib1.dll. This one
66aaf4ece6Schristos  is exporting the functions using the CDECL convention. See the file
67aaf4ece6Schristos  win32\DLL_FAQ.txt found in this zlib distribution.
68aaf4ece6Schristos
69aaf4ece6Schristos- There used to be a ZLIB_DLL macro in zlib 1.1.x, but now this symbol
70aaf4ece6Schristos  has a slightly different effect. To avoid compatibility problems, do
71aaf4ece6Schristos  not define it here.
72aaf4ece6Schristos
73aaf4ece6Schristos
74aaf4ece6SchristosGilles Vollant
75aaf4ece6Schristosinfo@winimage.com
76*de1ce4f6Schristos
77*de1ce4f6SchristosVisual Studio 2013 and 2015 Projects from Sean Hunt
78*de1ce4f6Schristosseandhunt_7@yahoo.com
79