Print Page | Close Window

zlib function

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=10503
Printed Date: 19 May 2024 at 8:31am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: zlib function
Posted By: jimmy
Subject: zlib function
Date Posted: 05 May 2008 at 8:20am
Hello,

what must i do , that i can use the zlib & crc32 function ?
from static lib and from dll version.

  Jimmy




Replies:
Posted By: larryp
Date Posted: 05 May 2008 at 1:37pm
I added the following to the CodeJock source file XTPGraphicBitmapPng.cpp and recompiled CodeJock.
 
_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 );
}
 
Then in my source code I define the following:
extern int ZLibCompress( BYTE *dest,   ULONG *destLen, const BYTE *source, ULONG sourceLen);
extern ULONG ZLibCompressBound( ULONG sourceLen );
extern int ZLibUncompress (BYTE *dest, ULONG *destLen, const BYTE *source, ULONG sourceLen);
 
--Larry

 



Posted By: jimmy
Date Posted: 06 May 2008 at 4:28am
Thanks Larry

Hi Oleg,
can you add this for the next release.

 Thanks
  Jimmy



Posted By: jimmy
Date Posted: 06 June 2008 at 5:45am
Hi Oleg,

Posible to add this to v12.0.1 ?

  Jimmy



Posted By: jimmy
Date Posted: 07 July 2008 at 10:45am
Wish for next release.

const ULONG * XTPGetCrc32Table();
ULONG XTPCrc32(ULONG crc, const BYTE *pData, ULONG len);
And also export all necessary zlib function.

  Jimmy





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