Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Sunday, November 12, 2006 9:47:15 PM(UTC)

Groups: Registered
Posts: 4

I am using Leadtools v13.  I switched from the DLL to the Classlib.  In the following code IsAvailable() keeps returning FALSE.  The problem did not occur with L_IsTwainAvailable(m_hWnd).

LUserBitmapWindow    m_Bitmap;

void CMyView::OnUpdateTwainSelsource(CCmdUI* pCmdUI)

The scanner is a UMAX S-12 SCSI and uses UMAX's Vistascan32 driver.  Other 3rd party software (e.g., Paperport v8) is able to access the scanner.  I checked and the driver (.ds) is in \windows\twain_32.

Any suggestions would be appreciated.

Also, I tried the program on another machine with a new MicroTek USB Twain scanner.  Same problem.  3rd party software is OK, but the leadtools will not recognize it.

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 : Monday, November 13, 2006 7:26:32 AM(UTC)


Groups: Manager, Tech Support
Posts: 367

Here's a code sample that checks for Twain availability using LEAD C++ Class Library. Please check your code to see if anything is different. The code works for both versions 13 and 14.

LBitmapBase m_Bitmap;

nRet = LBase::LoadLibraries(LT_TWN);
m_Bitmap.Twain()->SetWindow(hWnd); //hWnd must be a valid window handle
   ::MessageBox(hWnd, "OK", "Twain Test", MB_OK);
   ::MessageBox(hWnd, "Not OK", "Twain Test", MB_OK);

Amin Dodin

Senior Support Engineer
LEAD Technologies, Inc.
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-2023, Yet Another Forum.NET
This page was generated in 0.429 seconds.