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

ADF Automatic Document Feeder

Forums › TWAIN Classic › ADF Automatic Document Feeder

  • This topic has 0 replies, 1 voice, and was last updated 13 years, 10 months ago by Deficiency.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • March 2, 2007 at 1:12 pm #22098 Reply
    Deficiency
    Participant
    • Topics - 3
    • Replies - 6
    • Total Posts - 9

    Hello!

    I have a Question: Can some look at these code lines and say me what i have done wrong?


    //Document Feeder
    TW_CAPABILITY twCapability;
    TW_INT16 rc;
    TW_UINT32 NumberOfItems;
    twCapability.Cap = CAP_FEEDERENABLED; //Insert Capability of Interest
    twCapability.ConType = TWON_ONEVALUE;

    pTW_ONEVALUE pvalOneValue;
    TW_BOOL valueBool = true;;
    twCapability.hContainer = GlobalAlloc(GHND, sizeof(TW_ONEVALUE));
    pvalOneValue = (pTW_ONEVALUE)GlobalLock(twCapability.hContainer);

    pvalOneValue->ItemType = TWTY_BOOL;
    pvalOneValue->Item = valueBool;
    GlobalUnlock(twCapability.hContainer);

    //
    MSG_SET
    rc = (*g_pDSM_Entry)(&g_AppID,
    &g_SrcID,
    DG_CONTROL,
    DAT_CAPABILITY,
    MSG_SET,
    (TW_MEMREF)&twCapability);
    GlobalFree(twCapability.hContainer);
    switch (rc)
    {
    case TWRC_SUCCESS:

    //Capability's Current or Available value was set as specified

    case TWRC_CHECKSTATUS:
    //The Source matched the specified value(s) as closely as possible
    //Do a MSG_GET to determine the settings made

    case TWRC_FAILURE:
    //Check the Condition Code for more information

    default:
    break;

    }

    I have a network scanner and i connect via Netzwork Twain on it. If i do not include this lines of code i can display the Picture and they i can save it as BMP. The code for the Display and save are both with Twain.

    But when i include the lines above it doesn´t work anymore!
    And i realy don´t know what i do wrong?

    By the way, the code is in the function openDS()

    thx a lot

  • Author
    Posts
Viewing 1 post (of 1 total)
Reply To: ADF Automatic Document Feeder
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

  • EPSON V600 TWAIN and WIA on Windows 10
  • When and how to use WaitForEvents command ?
  • Problem enumerating list of installed scanners in windows server 2012
  • Failed to create TWAIN progress! Error code is 1260.
  • To get the list of scanners from javascript client side (browser)
  • 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.