Posted: Fri Dec 06, 2002 6:30 pm
Restored from previous forum. Originally posted by fweil.
Hello,
I am trying to use Freeimage.dll available at http://prdownloads.sourceforge.net/free ... p?download
and I cannot figure out how to use it well.
A small test code like :
Result = OpenLibrary(0, "freeimage.dll")
Debug Result
If Result
Debug "IsFunction FreeImage_Initialise " + Str(IsFunction(0, "FreeImage_Initialise"))
Result = CallFunction(0, "FreeImage_Initialise", #TRUE)
Debug Result
Debug PeekS(CallFunction(0, "FreeImage_GetVersion"))
Debug "IsFunction FreeImage_GetVersion " + Str(IsFunction(0, "FreeImage_GetVersion"))
Result = CallFunction(0, "FreeImage_GetVersion", "")
Debug Result
Result = CallFunction(0, "FreeImage_DeInitialise")
Debug Result
CloseLibrary(0)
EndIf
gives a valid access to the DLL when using OpenLibrairy, but IsFunction return values are always 0 obviously I use names given in the documentation.
Does one have done any tests or have any idea about the issue I have ?
KRgrds
Francois Weil
14, rue Douer
F64100 Bayonne
Hello,
I am trying to use Freeimage.dll available at http://prdownloads.sourceforge.net/free ... p?download
and I cannot figure out how to use it well.
A small test code like :
Result = OpenLibrary(0, "freeimage.dll")
Debug Result
If Result
Debug "IsFunction FreeImage_Initialise " + Str(IsFunction(0, "FreeImage_Initialise"))
Result = CallFunction(0, "FreeImage_Initialise", #TRUE)
Debug Result
Debug PeekS(CallFunction(0, "FreeImage_GetVersion"))
Debug "IsFunction FreeImage_GetVersion " + Str(IsFunction(0, "FreeImage_GetVersion"))
Result = CallFunction(0, "FreeImage_GetVersion", "")
Debug Result
Result = CallFunction(0, "FreeImage_DeInitialise")
Debug Result
CloseLibrary(0)
EndIf
gives a valid access to the DLL when using OpenLibrairy, but IsFunction return values are always 0 obviously I use names given in the documentation.
Does one have done any tests or have any idea about the issue I have ?
KRgrds
Francois Weil
14, rue Douer
F64100 Bayonne