Hello!
I want to use part of the libwebp library to view images in a program written in VB 6.0 on 32-bit systems (Windows XP x86).
I've declared declarations for two library functions:
Public Declare Function WebPGetDecoderVersion Lib "libwebp.dll" () As Long
Public Declare Function WebPGetInfo Lib "libwebp.dll" (ByRef Arr As Any, _
ByVal data_size As Long, ByRef Wwidth As Long, _
ByRef Wheight As Long) As Long
The first function works fine when called:
Label4.Caption = WebPGetDecoderVersion
The second function, when called:
Addr = WebPGetInfo(bRead(0), FSize - 1, ImgW, ImgH)
raises an error: "Bad DLL calling convention".
I tried compiling the parts I needed from the libwebp library. The decode.h file contains prototypes of the functions I need, but I couldn't find the functions themselves.
What should I do to find them?
--
You received this message because you are subscribed to the Google Groups "WebP Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webp-discuss...@webmproject.org.
To view this discussion visit https://groups.google.com/a/webmproject.org/d/msgid/webp-discuss/e84dd7a0-c21c-48a1-80fa-6e24fda875a0n%40webmproject.org.
Hello, James!
Thanks for your reply. I don't use the repository. I just download what I need.
Apparently, the functions whose prototypes are specified in the decode.h file are generated by the preprocessor from macros.
Hi, James!Macros:"MAKE_DECODER_VERSION(WebPDecodeRGB, RGB) MAKE_DECODER_VERSION(WebPDecodeRGBA, RGBA) MAKE_DECODER_VERSION(WebPDecodeARGB, ARGB) MAKE_DECODER_VERSION(WebPDecodeBGR, BGR) MAKE_DECODER_VERSION(WebPDecodeBGRA, BGRA)"
Hi, James!Here is the link to the source codes:
I managed to create a wrapper library for libwebp.dll and use it in a program written in VB 6.0.