Viktor,
After some research, it seems to be related to the way the dll is built,
in zlib1.dll (http://www.zlib.net) they use the CDECL, not the STDCALL
convention (something they explain in the site http://www.zlib.net/DLL_FAQ.txt).
Instead, zlibwapi.dll (http://www.winimage.com/zLibDll/) is supposed to
be built with the STDCALL standard. They even offer a zlib_bor.lib
I had luck with the second one but only if using the -a switch. :-(
Another way is to build the dll from the sources but defining ZLIB_WINAPI,
something I have not tried yet. But I think this is a worst task than using
the -a switch.
Those are my findings, hope others have better luck.
Jorge A.
> From: [EMAIL PROTECTED]
> To: harbour@harbour-project.org
> Subject: Re: [Harbour] zlib contrib question
> Date: Sun, 27 Jan 2008 13:09:51 +0100
>
> Hi Jorge,
>
> Before I add this - which would create a one time exception of all
> current contribs -, do you, or anyone know, how to compile hbzlib
> to _not_ require this implib hack when compiled with BCC?
>
> If there were a compiler switch or some ZLIB #define we could use,
> I think we could get a better, more generic solution.
>
> Brgds,
> Viktor
>
> On 2008.01.27., at 0:48, Jorge A. Giraldo wrote:
>
> > Viktor,
> >
> > Please add the -a switch in IMPLIB for the MAKE_B32.BAT
> >
> > Thanks,
> >
> > Jorge A.
> >
> > > From: [EMAIL PROTECTED]
> > > To: harbour@harbour-project.org
> > > Subject: Re: [Harbour] zlib contrib question
> > > Date: Fri, 25 Jan 2008 16:40:21 +0100
> > >
> > > Okey and thanks.
> > >
> > > to Przemek: The GNU make system will have to adapted
> > > too I guess.
> > >
> > > Brgds,
> > > Viktor
> > >
> > > On 2008.01.25., at 14:31, Mindaugas Kavaliauskas wrote:
> > >
> > > > Szakáts Viktor wrote:
> > > >> I'd suggest to keep zlib.h and zconf.h out of our SVN,
> > > >> since the zlib dll package is needed anyway to use this
> > > >> contrib. This way we'd be in sync with the rest of the
> > > >> contribs where similar concept is used to avoid any
> > > >> user installed .dll vs. local header file incompatibilites.
> > > >
> > > > Hi,
> > > >
> > > >
> > > > I do not know how to manage this situation the best, so, feel free
> > > > to change. I went the most simple way - included it into contrib
> > > > project.
> > > >
> > > >
> > > > Best regards,
> > > > Mindaugas
> > > >
_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour