This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#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)
{
pCmdUI->Enable(m_Bitmap.Twain()->IsAvailable());
}
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.
#2
Posted
:
Monday, November 13, 2006 7:26:32 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
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
if(m_Bitmap.Twain()->IsAvailable())
::MessageBox(hWnd, "OK", "Twain Test", MB_OK);
else
::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.