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 : Wednesday, June 11, 2008 5:32:23 AM(UTC)
jjwalters

Groups: Registered
Posts: 10


The following returns an error -2041.
This error number is not listed - any ideas what it means and how to fix it?

<code>
<br>
bool FileConvert::convert(const char *filename)<br>
{<br>
    L_INT lSuccess = SUCCESS;<br>
    if(filename)<br>
    {<br>
        LBitmap lb2;<br>
        lb2.SetFileName((L_TCHAR *)filename);<br>
        lSuccess = lb2.Load(0);<br>
    }<br>
    return (lSuccess == SUCCESS);<br>
}<br>
</code>
<br>
Jordan
 

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 : Wednesday, June 11, 2008 10:31:38 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,034

Was thanked: 1 time(s) in 1 post(s)

This error means "ltfil dll not loaded". Did you load LEADTOOLS library DLLs at run-time to your application using the LSettings::LoadLibraries function? If not, please try to add this code to your application:

L_INT nRet = LSettings::LoadLibraries(LT_KRN | LT_FIL);
 
#3 Posted : Wednesday, June 11, 2008 10:56:34 PM(UTC)
jjwalters

Groups: Registered
Posts: 10


Yes. That did the trick. I should have mentioned that I'm using LeadTools v15, so I ended up calling LBase::LoadLibraries(LT_KRN | LT_FIL);
But thank you for such a speedy and accurate response.
As a matter of interest: where is error -2041 documented. Or are the chm's that come with L15 a little behind?
Jordan
 
#4 Posted : Thursday, June 12, 2008 8:41:32 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,034

Was thanked: 1 time(s) in 1 post(s)

You can find the meaning of the error codes in the LtcWrpEr.h header file. The file is located under this path:
LEADTOOLS15\INCLUDE\ClassLib\LtcWrpEr.h
 
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.170 seconds.