123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|436|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> Using a DLL

Sat, 04 Apr 2009, 16:12
Phoenix
This is the .decls file for the FreeImage library:


Save that in Blitz3D's "Userlibs" folder as "FreeImage.decls". The DLL itself should be put in the same directory as your executable. The following code can be saved as an include, eg "FreeImage.bb", then included in your code and you should be able to just call FILoadImage("Image.xyz") and have it working.



I basically just nicked the code from sswift's post in the thread you posted, but it shouldn't be more complicated than that.
Sun, 05 Apr 2009, 02:01
Phoenix
I got it working using this method instead, perhaps you should try that. Make sure to have the latest binary of the DLL as well.
Sun, 05 Apr 2009, 13:27
Phoenix
I got the solution posted by Mark working directly, and I have the latest version of Blitz. I don't know if that's the problem though. But you should always have the lates version anyway, so it doesn't hurt to get it.
Sun, 05 Apr 2009, 14:51
CodersRule
If I remember correctly, the older versions of B3D don't support decls, maybe I'm wrong. It's worth it to update anyway.