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

Error scanning image

Forums › TWAIN Classic › Error scanning image

  • This topic has 2 replies, 2 voices, and was last updated 13 years, 8 months ago by arubia.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 16, 2007 at 5:48 pm #22143 Reply
    arubia
    Participant
    • Topics - 1
    • Replies - 1
    • Total Posts - 2

    Hi all

    I have a sourcecode in C++Builder6 to take a image from a scanner, I’m configuring the capabilities with (ICAP_PIXELTYPE,TWPT_RGB->TWRC_SUCCESS) after initialice the native transmision… and finaly I send “DsmEntry(&appId, &sourceId, DG_IMAGE,DAT_IMAGENATIVEXFER, MSG_GET, &hDib);” and return TWRC_SUCCESS, all OK the image it’s perfect.

    But when I change to (ICAP_PIXELTYPE, TWPT_BW or TWPT_GRAY) respond TWRC_SUCCESS too and I do the same of RGB:
    – initialice the native transmision
    – “DsmEntry(&appId, &sourceId, DG_IMAGE, DAT_IMAGENATIVEXFER,MSG_GET, &hDib);” and now return TWRC_CANCEL

    I don’t understand it!!! I only change the ICAP_PIXELTYPE, I think that the error can be in the HBITMAP define in borlandC++ or not… anyone have some idea.

    sorry for my bad english and thanks for help me

    May 18, 2007 at 7:31 am #23808 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    Check that the source supports TWPT_BW / TWPT_GRAY.
    what is the condition code?

    .

    May 21, 2007 at 8:56 am #23809 Reply
    arubia
    Participant
    • Topics - 1
    • Replies - 1
    • Total Posts - 2

    The scanner supports TWPT_BW / TWPT_GRAY. I think that the error are in the compiler, I’m going to re-install the Borlandc++ and try again.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Error scanning image
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.