This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, June 11, 2008 5:27:23 AM(UTC)
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
#2
Posted
:
Wednesday, June 11, 2008 10:26:38 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 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:51:34 PM(UTC)
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:36:32 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 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.