Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, January 8, 2010 12:09:35 PM(UTC)
mfcdeveloper

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.
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Sunday, January 10, 2010 4:43:16 AM(UTC)

Basel  
Guest

Groups: Guests
Posts: 3,040

Was thanked: 1 time(s) in 1 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.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.118 seconds.