Home › Forums › TWAIN Classic › Looking for a "push model" (ICAP_FEEDERLOADED) exa
- This topic has 3 replies, 2 voices, and was last updated 14 years, 4 months ago by eramgarden.
- AuthorPosts
I opened a question here and got a response.
http://www.twainforum.org/viewtopic.php?t=4115
So, i’m using TWAIN. I’m using this code:
http://www.codeproject.com/KB/dotnet/twaindotnet.aspx?fid=2619&df=90&mpp=25&noise=3&sort=Position&view=Quick&fr=26#xx0xxAll works. But now my manager wants to have the “push model”. But i cant find examples of ICAP_FEEDERLOADED code. Not sure how I can code for it and add it to that codeproject code…
Anyone with an example?
@eramgarden wrote:
But i cant find examples of ICAP_FEEDERLOADED code.
# Not ICAP_FEEDERLOADED but CAP_FEEDERLOADED.
For example…while (1) {
while (CAP_FEEDERLOADED is FALSE) {
if (cancelled by user) return;
}
Scan images.
}let me try this. Thanks.
I am back this topic again and I don’t understand how this works..
I added this to the code that I got from that link:
internal enum TwCap : short
{
XferCount = 0x0001, // CAP_XFERCOUNT
ICompression = 0x0100, // ICAP_…
IPixelType = 0x0101,
IUnits = 0x0102,
CAP_FEEDERLOADED = 0x1003,
IXferMech = 0x0103
}now, in the code I have this which doesnt work:
while(true)
{
while (TwCap.CAP_FEEDERLOADED )
{}
}— i get an error that TwCap.Cap_FeederLoaded cannot be converted to Bool…
Not sure how to use this to check for scanner being ready to scan…
- AuthorPosts