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 1.x and 2.x at the same time/installation guidelines

Forums › TWAIN Specification › TWAIN Specification Discussion › Twain 1.x and 2.x at the same time/installation guidelines

  • This topic has 3 replies, 2 voices, and was last updated 6 years, 1 month ago by MarkM.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • October 14, 2014 at 9:34 am #22981 Reply
    HOHXP
    Participant
    • Topics - 2
    • Replies - 34
    • Total Posts - 36

    There should be guidelines concerning use of 1.x/2.x.

    Should an application (not driver) install TWAINDSM.DLL if not installed ? What if TWAIN_32.DLL is present and driver(s) present already ? What if not ?

    If installprogram of application is shipped with newer version of TWAINDSM.DLL should it update it ?

    If application is 64 bit should it install and/or update both 32 bit and 64 bit TWAINDSM.DLL ?

    What will happen if both TWAIN_32.DLL AND TWAINDSM.DLL is present and 2 applications loads one each and both tries to access the scanner at the same time. (Assuming scannerdriver recognize 2 applications attempting to use it at the same time)

    November 20, 2014 at 8:53 pm #26211 Reply
    MarkM
    Participant
    • Topics - 1
    • Replies - 135
    • Total Posts - 136

    Applications and drivers should both install TWAINDSM. The supplied MSI wrapper checks the version number, so that the latest version is always installed.

    An application should install the machine word size appropriate for it (32 or 64 bit). The same applies to drivers. If an application or driver can support both 32 and 64 bit, then it should install both versions of TWAINDSM.

    The TWAIN DSM is not involved in device locks, this is the responsibility of each TWAIN driver, so it doesn’t matter which TWAIN DSM is used (TWAINDSM or TWAIN_32), it should work just fine. Put another way, whatever happens when two applications use different DSMs will be identical to what happens if they both use the same DSM.

    November 21, 2014 at 8:17 am #26212 Reply
    HOHXP
    Participant
    • Topics - 2
    • Replies - 34
    • Total Posts - 36

    Thanks for reply. One more question. Seems like TWAIN_32.DLL presents WIA drivers while TWAINDSM.DLL does not (at least 32 bit version). Is this correct ? If so why ? Any configuration ?
    (WIA drivers is usually very limited in functionallity so personally I think it is good, “novice” user might be using WIA driver by mistake)
    For the future it might be wise to have some kind og possiblity for an app to check if a driver is a WIA driver or a “pure” Twain driver.

    November 21, 2014 at 11:58 am #26213 Reply
    MarkM
    Participant
    • Topics - 1
    • Replies - 135
    • Total Posts - 136

    Microsoft created a compatibility layer so that scanner vendors could supply just a WIA driver and yet TWAIN applications would still be able to access the device.

    It wasn’t necessarily bad idea, but it was implemented so poorly (Microsoft underestimated the complexity of the problem) that the TWAIN Working Group decided to exclude it from driver searches in the open source TWAINDSM for the very reason you mention: confusion among end users.

    As stated previously, the stance of the TWAIN Working Group is that there is no reason for an application to use TWAIN_32.DLL. If they switch to TWAINDSM.DLL, they’ll get the same quality experience, with some extra benefits, such as full support for TWAIN 2.0 DSM features, debugging access to the source code, and built in logging.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Twain 1.x and 2.x at the same time/installation guidelines
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

  • Hello world
  • Girls of Desire: All babes in one place, crazy, art
  • 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
  • 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.