[delphizip] Re: Static linking of the delzip dll

  • From: Roger Aelbrecht <Roger.Aelbrecht@xxxxxxxxx>
  • To: delphizip@xxxxxxxxxxxxx
  • Date: Mon, 23 Apr 2012 15:03:45 +0200

Meganet Polygyros wrote:
>
> Hello,
>
> I've been trying to compile the ZipBuilder v190 with the #define 
> STATIC_LOAD_DELZIP_DLL enabled,
> but the BCB5 compiler throws a couple of error that i'm unable to handle. Can 
> you please provide me with
> a solution ?
>
>
> The errors BCB5 is throwing are:
>
> [C++ Error] ZBDllLoad.h(57): E2147 'UnZipParms' cannot start a parameter 
> declaration
> [C++ Error] ZBDllLoad.h(59): E2147 'ZipParms' cannot start a parameter 
> declaration
> [C++ Error] ZBDllLoad.cpp(61): E2141 Declaration syntax error
> [C++ Error] ZBDllLoad.cpp(562): E2451 Undefined symbol 'Key'
> [C++ Error] ZBDllLoad.cpp(591): E2268 Call to undefined function 'DZ_Exec'
>
>
> Thanks in advance,
>
> Ark
>                                       
> -----------
> To unsubscribe from this list, send an empty e-mail
> message to:
>    delphizip-request@xxxxxxxxxxxxx
> and put the word unsubscribe in the subject.
>
>
I have done some checking on your problem and it seems an older change 
that was not included in the static versio.

In ZBDllLoad.h

remove the lines
//long WINAPI DZ_UnzExec( UnZipParms* C );
//long WINAPI DZ_ZipExec( ZipParms* C );
and add a line
long WINAPI DZ_Exec(const TDLLCommands* C);
at the place were you remove the other 2

In ZBDLLlod.cpp

the line
TZBDLLLoader* G_LoadedDLL = NULL;

should be moved after the line
#ifndef STATIC_LOAD_DELZIP_DLL


I attached the 2 changed files and will put a new build at the usual 
places as soon as possible





-- 
Roger Aelbrecht


-----------
To unsubscribe from this list, send an empty e-mail 
message to:
  delphizip-request@xxxxxxxxxxxxx 
and put the word unsubscribe in the subject.

Other related posts: