![]() |
using zlib |
Post Reply
|
| Author | |
Marcus
Groupie
Joined: 04 June 2006 Location: Germany Status: Offline Points: 42 |
Post Options
Thanks(0)
Quote Reply
Topic: using zlibPosted: 20 August 2006 at 3:11pm |
|
Hi! Now that zlib is part of the ToolKit, I would like to use it in my application too. When I link MFC and XTP statically, zlib functions like compress() uncompress() can easiely be called without any problem. But when linking MFC/XTP dynamically, I get an "error LNK2019: unresolved external symbol " Could somebody give me a hint on how to call the functions in the dll?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 August 2006 at 7:46pm |
|
Hi
From dll exported only functions that marked with _XTP_EXT_CLASS
you can manually add some function in some .h file
_XTP_EXT_CLASS void ZLibCompress(..)
{ compress(...);
}
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
larryp
Groupie
Joined: 15 January 2005 Location: United States Status: Offline Points: 61 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 April 2008 at 5:19pm |
|
I have the same question but I cannot get Oleg's suggestion to work.
For the following function:
_XTP_EXT_CLASS int ZLibCompress( Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen){ return compress( dest, destLen, source, sourceLen);} I get the following:
error C2491: 'ZLibCompress' : definition of dllimport function not allowed |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 April 2008 at 1:26am |
|
Hi,
but do you add it to our sources ?
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |