[Zlib-devel] Re: [png-implement] Binary-incompatible change in the DLL interface of zlib
Gerard Juyn
gjuyn at xs4all.nl
Mon Jul 28 09:18:00 EDT 2003
Cosmin,
> We believe the only way to get out of this mess is to change the
> calling convention to CDECL (which is now the same as the one used in
> the static lib), and to build the DLL under a new name. The name used
> for the new DLL is ZLIB1.DLL.
IMHO using CDECL for a DLL is a 'bad design decision'. A DLL is supposed to
be language-independant and making it CDECL binds it specifically to C/C++.
Pascal compilers and a few others may (Delphi for sure) work with it, but
AFAIK Visual Basic *does not*. STDCALL or WINAPI or whatever name you
want to give it (even MS change their naming-habit as we all love...), it is still
*the* Windows default and IMHO should be used for *every* DLL....
Just my 2 eurocents.
Gerard
Gerard Juyn (gjuyn at xs4all.nl)
http://www.3-t.com - Style One - Create Stunning Web Pages Effortlessly
More information about the Zlib-devel
mailing list