Print Page | Close Window

ZLib

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Visual C++ MFC Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=16192
Printed Date: 15 May 2024 at 10:14am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ZLib
Posted By: Daniel
Subject: ZLib
Date Posted: 14 February 2010 at 12:36pm
One request to make the ZLib-functions from the Library public, so that we have access to it. This is done very simple:
 
Add this line into XTPGraphicBitmapPng.cpp
 
_XTP_EXT_CLASS int ZLibCompress( Bytef *dest,   uLongf *destLen, const Bytef *source, uLong sourceLen)
{
   return compress( dest, destLen, source, sourceLen);
}
_XTP_EXT_CLASS ULONG ZLibCompressBound( uLong sourceLen )
{
   return compressBound ( sourceLen );
}
_XTP_EXT_CLASS int ZLibUncompress (Bytef *dest,   uLongf *destLen, const Bytef *source, uLong sourceLen)
{
   return uncompress ( dest, destLen, source, sourceLen );
}
 
 
 
And these lines into XTPGraphicBitmapPng.h
 
_XTP_EXT_CLASS int ZLibCompress( BYTE *dest,   ULONG *destLen, const BYTE *source, ULONG sourceLen);
_XTP_EXT_CLASS ULONG ZLibCompressBound( ULONG sourceLen );
_XTP_EXT_CLASS int ZLibUncompress (BYTE *dest, ULONG *destLen, const BYTE *source, ULONG sourceLen);
 
That's all and everyone can use the zlib functions without adding them again and again.
 
Daniel
 
 



Replies:
Posted By: Oleg
Date Posted: 16 February 2010 at 7:28am
Thanks, we added it.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Marcus
Date Posted: 29 April 2010 at 2:06pm
well done!
could you also add compress2() ?!
Thanks



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net