This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Friday, January 8, 2010 12:04:35 PM(UTC)
Groups: Registered
Posts: 4
Hi,
I have problem when using L_LoadBitmap function.
I don't know what the reason is.The code below.
BITMAPHANDLE LeadBitmap;
L_INT ret = L_LoadBitmap(TEXT("C:\\Temp\\2.bmp"),
&LeadBitmap,
sizeof(BITMAPHANDLE),
24,
ORDER_BGR,
NULL,
NULL);
if ( ret== SUCCESS)
{
...
}
Nothing else.
ret is always -9. Please advise.
Thanks.
#2
Posted
:
Sunday, January 10, 2010 4:38:16 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
The error message -9 means "Invalid file format", which in many cases means there's a missing file-format DLL. Are you sure you included all the needed DLLs with your application?
For example if you are loading or saving TIFF image you will need to include LFTIFU.DLL, LFFAXU.DLL and possibly other LF???U.DLL files (depends on the type of TIFF compression you use).
For more information, please see the help topic "Files to be Included with Your Application" in our C DLL help file.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.