TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

Looking for a "push model" (ICAP_FEEDERLOADED) exa

Forums › TWAIN Classic › Looking for a "push model" (ICAP_FEEDERLOADED) exa

  • This topic has 3 replies, 2 voices, and was last updated 11 years, 2 months ago by eramgarden.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • November 3, 2009 at 2:28 pm #22552 Reply
    eramgarden
    Participant
    • Topics - 2
    • Replies - 8
    • Total Posts - 10

    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#xx0xx

    All 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?

    November 4, 2009 at 10:44 am #25078 Reply
    june5
    Participant
    • Topics - 0
    • Replies - 17
    • Total Posts - 17

    @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.
    }
    November 4, 2009 at 1:42 pm #25079 Reply
    eramgarden
    Participant
    • Topics - 2
    • Replies - 8
    • Total Posts - 10

    let me try this. Thanks.

    December 17, 2009 at 9:00 pm #25080 Reply
    eramgarden
    Participant
    • Topics - 2
    • Replies - 8
    • Total Posts - 10

    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…

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Reply #25080 in Looking for a "push model" (ICAP_FEEDERLOADED) exa
Your information:




Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • Scanner starts transfer when console gets closed (CITRIX)
  • Kodak RFS 3600
  • Didn’t save enough file scan
  • EPSON V600 TWAIN and WIA on Windows 10
  • When and how to use WaitForEvents command ?
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.