Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - zlib function
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

zlib function

 Post Reply Post Reply
Author
Message
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Topic: zlib function
    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

Back to Top
larryp View Drop Down
Groupie
Groupie


Joined: 15 January 2005
Location: United States
Status: Offline
Points: 61
Post Options Post Options   Thanks (0) Thanks(0)   Quote larryp Quote  Post ReplyReply Direct Link To This Post 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

 

Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 2008 at 4:28am
Thanks Larry

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

 Thanks
  Jimmy

Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Posted: 06 June 2008 at 5:45am
Hi Oleg,

Posible to add this to v12.0.1 ?

  Jimmy

Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post 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


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.219 seconds.