FreeImage wrapper
- Posted by angelushappyfm at evc.net Apr 07, 2002
- 358 views
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