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, March 27, 2008 5:12:10 AM(UTC)

patra  
patra

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.

 

 

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 : Thursday, March 27, 2008 7:44:27 AM(UTC)

Adam Boulad  
Guest

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)

patra  
patra

Groups: Registered
Posts: 4


Ok, Thanks a lot.

 

 
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.058 seconds.