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 : Thursday, January 15, 2009 8:59:57 AM(UTC)
sabyasachi2k

Groups: Registered
Posts: 1


Hi,

I am at my wits end regarding the following error number -2059 when I execute the LImageListControl.Insert method. This exception is not documented in your help files as well as not documented in the file lterr.h. Any help please?? Below is the code snippet!!

LImageListControl m_ImgList;

L_INT nRet = SUCCESS;

LBitmapBase Bitmap;

nRet = Bitmap.Load(TEXT("C:\\eMasterTest\\RegMark.tif"));

if(nRet != SUCCESS)

return ;

LILITEM itm;

itm.uStructSize = sizeof( LILITEM );

itm.pBitmap = Bitmap.GetHandle();

itm.pText = "Image Text";

itm.lData = 0;

itm.bSelected = FALSE;

itm.uMask = LILITEM_BITMAP | LILITEM_TEXT | LILITEM_DATA | LILITEM_SELECTED;

nRet = m_ImgList.Insert(&itm); // ERROR -2059 returned!!!

Thanks

Saby.

 

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 : Friday, January 16, 2009 11:20:27 AM(UTC)

GregR  
GregR

Groups: Registered, Tech Support, Administrators
Posts: 764


What version of LEADTOOLS are you using?

Also, what is the file version of ltkrn*.dll that you are using?

Since this is a CLIB interface specific error, it will be in LtcWrpEr.h rather than lterr.h which is for the CDLL interface.  Since the CLIB builds off of the CDLL, most of the errors you will get will subsequently be in lterr, but for anything CLIB specific, you will need to look in ltcWrpEr.h.

Anyways, the error means "ImageList Control not created", so most likely you haven't initialized the LImageListControl properly.
 
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-2024, Yet Another Forum.NET
This page was generated in 0.045 seconds.