[Zlib-devel] zlib 1.2.5
John Bowler
jbowler at frontiernet.net
Tue May 25 15:32:12 EDT 2010
From: Rolf Kalbermatter [mailto:r.kalbermatter at hccnet.nl]
>To my knowledge such an automatic translation layer between cdecl callers
>and stdcall library doesn't exist.
Yes, this is correct.
>If you use the import library that was created together with
>the DLL you won't see any problems
Well, it fails at link time (because the cdecl '_' prefix isn't present on the stdcall symbols).
>but if you link to a cdecl import library but have a stdcall shared
>library things do go bad.
This is when the program just doesn't run (there is an error code from the exec which Cygwin/Bash ends up reporting as 127 - I think that just means 'too big to fit in 16 bits' - UNIX error codes were traditionally encoded as 16 bit values.)
John Bowler <jbowler at acm.org>
More information about the Zlib-devel
mailing list