LEADTOOLS Support
Imaging
Imaging SDK Questions
How to check the Device status before opening Interface Dialog.
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Sunday, August 20, 2006 11:44:48 PM(UTC)
Groups: Registered
Posts: 4
Hello.
I'm so sorry , I queried many questions for a short time.
But, I guess these questions are helpful for all of us. :) ....maybe...
I wonder how to check the Device status before opening Interface Dialog.
When I open Interface Dialog directly with ::"L_TwainAcquireList" ,
I have some problems.
There are results that I can't expect.
Because when I access a device after other program accesses same one, already.
So I need how to check device status before a opening Interface Dialog.
is it possible?
Although "L_TwainAcquireList" returnes codes powerfully,
There are many cases that are fatal error in implcit before returning code.
What am i going to do?
Thank you for reading.
#2
Posted
:
Wednesday, August 23, 2006 10:27:00 PM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Hello,
You need to determine whether
the TWAIN source is installed by using the L_IsTwainAvailable function.
If the function returnes At least TRUE, this means at least one TWAIN
source is installed. Then you need to call the L_TwainInitSession
function to Initializes the TWAIN session. If the function returns
success then I think it's safe to call the L_TwainAcquireList function.
But if you need to check the
success of scanning each image individually, you should use the
L_TwainAcquire function and provide a LTWAINBITMAPCALLBACK function for
processing each image.
For more information, please refer to the LEADTOOLS Twain API Help file and read the following topics:
- L_IsTwainAvailable.
- L_TwainInitSession.
- L_TwainAcquireList.
- L_TwainAcquire.
- LTWAINBITMAPCALLBACK.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
LEADTOOLS Support
Imaging
Imaging SDK Questions
How to check the Device status before opening Interface Dialog.
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.