![]() |
zlib function |
Post Reply
|
| Author | |
jimmy
Senior Member
Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |
Post Options
Thanks(0)
Quote Reply
Topic: zlib functionPosted: 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 |
|
![]() |
|
larryp
Groupie
Joined: 15 January 2005 Location: United States Status: Offline Points: 61 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
jimmy
Senior Member
Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 May 2008 at 4:28am |
|
Thanks Larry
Hi Oleg, can you add this for the next release. Thanks Jimmy |
|
![]() |
|
jimmy
Senior Member
Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 June 2008 at 5:45am |
|
Hi Oleg,
Posible to add this to v12.0.1 ? Jimmy |
|
![]() |
|
jimmy
Senior Member
Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |