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

Twain Exists, but TwainEnableSource fails

Forums › TWAIN Classic › Twain Exists, but TwainEnableSource fails

  • This topic has 1 reply, 2 voices, and was last updated 12 years, 5 months ago by gabe.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • October 23, 2008 at 3:14 am #22422 Reply
    Daryllafferty
    Participant
    • Topics - 1
    • Replies - 0
    • Total Posts - 1

    I am developing a Twain application based on the code that Jonathan Arnold posted at http://www.buddydog.org/C++Builder/c++builder.html. He said it was closely based on the SDK.

    When I call TwainGetImage(hwnd), what does the handle hwnd refer to? Is it just a dummy handle?

    TwainExists() returns true, but then I am always exiting out at TwainEnableSource(), with the variable rc == TWRC_FAILURE. I thought it might be related to passing the wrong handle through TwainGetImage().

    Do these functions mean anything to anyone, or do I need to include some specific code?

    BTW, my only TWAIN source is an Epson scanner.

    October 27, 2008 at 6:39 pm #24693 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    it is more than likely the hwnd to the window that has a modified wndproc (like it says in the twain spec) unless he is subclassing/hooking the hwnd and handling the twain messages for you.

    .

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Twain Exists, but TwainEnableSource fails
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

  • Sports betting Bonus Code
  • PDF/R For who and where?
  • Making searchable PDF with PDF/R
  • Backward compatibility with PDF/A and traditional PDF
  • could not open the twain source. Make sure there is a valid source for your sca
  • 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.