This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, January 15, 2009 8:59:57 AM(UTC)
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.
#2
Posted
:
Friday, January 16, 2009 11:20:27 AM(UTC)
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.