Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > General Discussion
  New Posts New Posts RSS Feed - ZLib
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ZLib

 Post Reply Post Reply
Author
Message
Daniel View Drop Down
Groupie
Groupie


Joined: 20 June 2006
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote Daniel Quote  Post ReplyReply Direct Link To This Post Topic: ZLib
    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
 
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2010 at 7:28am
Thanks, we added it.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Marcus View Drop Down
Groupie
Groupie


Joined: 04 June 2006
Location: Germany
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marcus Quote  Post ReplyReply Direct Link To This Post Posted: 29 April 2010 at 2:06pm
well done!
could you also add compress2() ?!
Thanks
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.