Saturday, March 13, 2021

  1. How to compile zLib 1.2.8 (WINAPI / WAPI / STDCALL version)
  2. This is not a full-blown article - just a quick HOWTO for people who require the latest version of zLib and want to use it from a language (like classic VB) that requires a standard WinAPI interface.

    By default, zLib uses C calling conventions (CDECL). Gilles Vollant has helpfully provided an STDCALL version of zLib in the past, but his site only provides version 1.2.5, which dates back to January 2012. zLib is currently on version 1.2.8.

    Gilles has contributed his WAPI fixes to the core zLib distribution so that anyone can compile it themselves. To do this, you will need to download:

    1. The latest version of the zLib source code (http://zlib.net/zlib1211.zip at the time of this writing).
    2. The express version of Visual Studio 2012, freely downloadable from http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-products

    Once both of those are downloaded (and updated, as VS 2012 will require you to install several service packs), follow these steps to compile zLib yourself:

  3. Creating a Self Extracting Executable
  4. A class that allows you to create self extracting executables for use in distribution or setup programs.

  5. This is a paragraph.

  6. This is a paragraph.

  7. This is a paragraph.

  8. This is a paragraph.

  9. This is a paragraph.

  10. This is a paragraph.

  11. This is a paragraph.

  12. This is a paragraph.

  13. This is a paragraph.

  14. This is a paragraph.

  15. This is a paragraph.

  16. This is a paragraph.

  17. This is a paragraph.

  18. This is a paragraph.

  19. This is a paragraph.

  20. This is a paragraph.

No comments:

Post a Comment