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

TWAINDSM.DLL not backward compatible?

Forums › TWAIN Classic › TWAINDSM.DLL not backward compatible?

  • This topic has 1 reply, 1 voice, and was last updated 8 years, 8 months ago by clivew.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • May 24, 2012 at 6:16 pm #22755 Reply
    clivew
    Participant
    • Topics - 4
    • Replies - 12
    • Total Posts - 16

    I thought the specs said that TWAINDSM.DLL was backward compatible with e.g. TWAIN 1.9 drivers.
    I am having a problem talking to a Canon DR-2510C when switching from TWAIN_32.DLL to TWAINDSM.DLL.

    When I switch my code to point to TWAINDSM.DLL (ver. 2.2) I see the following in my code:
    (FYI: Windows 7 Pro 64-bit)
    1. LoadLibrary – succeeds.
    2. GetProcAddress for DSM_Enry – succeeds.
    3. Create a Parent window and get its handle – succeeds.
    3. DG_CONTROL, DAT_PARENT, MSG_OPENDSM – fails

    I am not sure if the ConditionCode returned is consistent; but I have seen it come back as 10 (BadValue I believe)
    from DG_CONTROL, DAT_STATUS, MSG_GET.

    Can anyone shed light on this?

    Thanks,

    Clive

    May 24, 2012 at 11:58 pm #25620 Reply
    clivew
    Participant
    • Topics - 4
    • Replies - 12
    • Total Posts - 16

    Turns out it is NOT totally compatible.
    TWAIN_32.DLL accepts empty strings for
    version.Info
    manufacturer
    ProductName
    ProductFamily

    TWAINDSM.DLL does not.

    I have not established whether all or only specific strings are required yet.

    Took me a lot of wasted hours to track it down, so I hope it helps someone!

    Edit: On further testing it seems that only ProductName is required.

    Clive

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: TWAINDSM.DLL not backward compatible?
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.