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 : Monday, May 1, 2006 9:33:52 PM(UTC)
Girishog

Groups: Registered
Posts: 11


Hi,


























I am trying to load a tiff images Using   LBitmapWindow::Load. I have loaded all the required dlls and lib,
ltkrn14N.dll
Ltwvc14N.dll
ltfil14N.DLL
ltimg14N.dll
LTDIS14N.dll
ltefx14N.dll
lffax14N.dll
lttwn14n.dll


But I get the error WRPERR_LTFIL_DLL_NOT_LOADED when the above function called, can any one help me in solving this problem.









Thanks in Advance,
Regards,
G.Girish

 

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 : Tuesday, May 2, 2006 11:50:55 PM(UTC)

Bashar  
Guest

Groups: Guests
Posts: 3,040

Was thanked: 1 time(s) in 1 post(s)

What did you pass to the LoadLibraries function?

 
#3 Posted : Wednesday, May 3, 2006 7:59:57 PM(UTC)
Girishog

Groups: Registered
Posts: 11





Hi Bashar,







Thanks for your reply,
The above problem was solved, By Rewriting in New project.









Now I am using LBitmapWindow :: SetHandle  to display the Image, But  I am not able to
view the image. Thing is I can see the Scrollbar as per the image height and width.
A blank white image is  being displayed.





I used L_LoadBitmap  to get the bitmaphandle “m_lbmphandle”

























m_lbitwindow.SetHandle(&m_lbmphandle,TRUE);     
m_lbitwindow.SetZoomMode(ZOOM_FIT, TRUE);
m_lbitwindow.EnableAutoScroll(TRUE);
m_lbitwindow.SetZoomFactor();
m_lbitwindow.SetDisplayMode(DISPLAYMODE_FASTPAINT |
                                                     DISPLAYMODE_RESAMPLE |
                                                      DISPLAYMODE_BICUBIC,
                                                DISPLAYMODE_BICUBIC);
m_lbitwindow.SetWndHandle(wndHandle);      





I even verified bitmaphandle by using the function L_SaveBitmap the image gets saved properly.





Regards,
G.Girish

 
#4 Posted : Sunday, May 7, 2006 2:25:29 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

Hello,

If you try to use the LBitmapWindow::Load instead of LBitmapWindow ::SetHandle, does it work?
If no, then please send me a small working project that demonstrates this issue, so that I can debug the code and may be find the problem.

Please let me know how it goes.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#5 Posted : Monday, May 8, 2006 10:20:42 PM(UTC)
Girishog

Groups: Registered
Posts: 11


Hi Maen,



Thanks for your reply ,



I have tried  LBitmapWindow::Load  with return value of -1041 and with  LBitmapWindow ::SetHandle with return value
of 1 but I am not able to view the image. I have attached my sample application with which have two variables



LBitmapWindow m_BitmapWindow;



BITMAPHANDLE m_lbmphandle;



Declared in  MysampleDoc.h  and Functions are defined in class CMysampleView



CMysampleView::LoadImage()



Window handle is set in the function



CMysampleView::OnDraw(CDC* pDC).

Thanks again.

Regards,
G.Girish




 

File Attachment(s):
Mysample.zip (39kb) downloaded 24 time(s).
 
#6 Posted : Thursday, May 11, 2006 6:26:31 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

Hello,

I received your project and I am currently checking this issue. But I need to know, if you didn't use the API DLL functions (L_LoadBitmap) to load the image, and use the C++ Class Library load method (as follows), do you get the same problem?
+-------------------------------+
myLBitmapWindow.SetFileName(TEXT("c:\\1.tif"));
myLBitmapWindow.Load();
+-------------------------------+

Please let me know how it goes.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#7 Posted : Friday, May 12, 2006 1:20:03 AM(UTC)
Girishog

Groups: Registered
Posts: 11


Hi Maen,




Thanks for kind co-operation.






The problem was solved, I have missed out LoadLibraries() and that was causing the problems.. But I have doubt here, almost all the functions were returning Success even though I missed out the libraries.










Why does this happen ?

Regards,
G.Girish

 
#8 Posted : Sunday, May 14, 2006 2:03:27 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

Hello,

I am glad to hear that the painting issue is solved now.

However, when I call the myLBitmapWindow.Load() method without calling the LoadLibraries() function I get the -1041 LTFIL DLL is not loaded. I am using the following code:
+------------------------------------+
int RetVal;
RetVal = myLBitmapWindow.Load();
+------------------------------------+
The error description (from the C++ Class Library Help file) as follows:
====================================
WRPERR_LTFIL_DLL_NOT_LOADED  -1041 LTFIL DLL is not loaded.
====================================

If you try the same issue using the above code without calling LoadLibraries()function, what is the value of the RetVal variable that you get?

Please let me know how it goes.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#9 Posted : Sunday, May 14, 2006 8:23:54 PM(UTC)
Girishog

Groups: Registered
Posts: 11



HI,





The Thing is I got the  Same return value as  you specified WRPERR_LTFIL_DLL_NOT_LOADED  when I used  myLBitmapWindow.Load()   ,But I used L_LoadBitmap and  LBitmapwindow:: SetHandle  to display the image Where I got the Success as the Return Value,Even though I am not  able to view the Image.
Why does this happen ?

Regards.
G.Girish

 
#10 Posted : Monday, May 15, 2006 1:01:32 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

Hello,

The L_LoadBitmap function is an API function that doesn't need using the LoadLibraries() method to work.
But when calling the myLBitmapWindow.Load method, you need to call the LoadLibraries() function before calling the load method.

If this explanation did not help you with your question or if you require further assistance, please let me know.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
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-2019, Yet Another Forum.NET
This page was generated in 0.310 seconds.