This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, March 27, 2008 5:12:10 AM(UTC)
Groups: Registered
Posts: 4
LBitmapWindow::Load function returns -9
In my appliaction I used like this :-
LBitmapWindow LeadBWnd;
LBase::LoadLibraries(LT_ALL_LEADLIB);
CString str("D:\\abc.bmp");
LeadBWnd.CreateWnd(m_hWnd,0,WS_VISIBLE | WS_CLIPSIBLINGS ,0, 0,200,200);
L_INT nRt = LeadBWnd.Load((L_TCHAR*)(LPCTSTR)str,0,ORDER_BGRORGRAY,NULL,NULL);
// it also used LeadBWnd.Load((L_TCHAR*)(LPCTSTR)str); for default parameters
// note since leadtools v15 does not support L_FAR* so we have not used here (L_TCHAR L_FAR*)
But here nRt value is -9 , (Invalid file format) for any type of image file.
Please help me. Thanks in advance.
#2
Posted
:
Thursday, March 27, 2008 7:44:27 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Does
the LoadLibraries function successfully load our DLLs, such as LTKrn and LTFil?
Also,
do you have the needed file format DLLs in the same folder that contains
LTFIL???.DLL. For example, to load Windows BMP files, you must have
LfBMP???.DLL.
For a full list, please read the help topic
"Files to be Included with Your Application".
#3
Posted
:
Friday, March 28, 2008 1:15:37 AM(UTC)
Groups: Registered
Posts: 4
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.