Libpng for image processing, zlib for compression. The two are closely related, libpng depend on zlib.
Compile the library:
1. Download libpng (http://sourceforge.net/projects/libpng/files/) and Libz (http://zlib.net/zlib-1.2.7.tar.gz) First, unzip the libpng, such as C:\workspace\libpng\.
2. Unzip Libz, rename zlib to libpng sibling directory, such as C:\workspace\zlib.
3. Enter libpng\projects\visualc71\ and open the project file with Visual Studio, there will be three sub-projects in the scheme: libpng, Pngtest, zlib. Direct compilation, no accident will be in the Win32_dll_debug directory and Win32_dll_debug\zlib directory generated Zlib1d.dll, Libpng15d.dll, libpng.lib and Zlib.lib library files.
4. If the error, copy scripts/pnglibconf.h.prebuilt to the source directory, renamed to Pnglibconf.h
There are three main things you need to do to work with these two libraries:
1. Add a directory containing Png.h and other header files to the add-in directory in the general
2. Add Zlib.lib;libpng.lib in additional dependencies, input, linker.
3. Common Properties->vc++ Directory---the library directory with Zlib.lib and Libpng.lib added.