Re: FreeImage wrapper

new topic     » goto parent     » topic index » view thread      » older message » newer message

Brian Broker has already wrapped it and then I used it in my simple image
editor:

http://www10.brinkster.com/tskoda/euphoria.asp#TsEuImageEditor

Brian: it's a shame you didn't submit this library to recent user
contributions page to avoid someone re-wrapping it like it happened now.

----- Original Message -----
From: <angelushappyfm at evc.net>
To: "EUforum" <EUforum at topica.com>
Subject: FreeImage wrapper


>
> Hi,
>
> I hope you'll be able to help me: I'm trying to
> make wrappers for FreeImage. I'm new at programming with Euphoria and
> even in C but I managed to wrap the BASS sound library and I wonder
> why it doesn't work with FreeImage as well though I use the same
> method.
>
> Does anyone know a useable wrapper already made or could simply help me
> understanding wrapping methods?
>
> Here is the code I used:
>
> -------------------------------------
>
> atom FreeImage
> FreeImage = open_dll("FreeImage.dll")
>
> atom FreeImageInit
>
> FreeImageInit = define_c_proc(FreeImage, "FreeImage_Initialise", {})
>
> global procedure FreeImage_Init()
>         c_proc(FreeImageInit, {})
> end procedure
>
> -------------------------------------
>
> And it gives me this error message (whatever the function I try to
> wrap)
>
> -------------------------------------
>
> C:\Euphoria\Perso\include/FreeImage.ew:17 in procedure FreeImage_Init()
> c_proc/c_func: bad routine number (-1)
>
> --------------------------------------
>
> It obviously doesn't define the procedure correctly.
>
> Thanks in advance
>
> Olivier Mercier
>
>
>
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu