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

Missing source in select source dialog

Forums › TWAIN Classic › Missing source in select source dialog

  • This topic has 1 reply, 1 voice, and was last updated 5 years, 8 months ago by PascalGula.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • April 30, 2015 at 1:01 pm #23007 Reply
    PascalGula
    Participant
    • Topics - 1
    • Replies - 1
    • Total Posts - 2

    Hello,
    I am developing a Twain Application and face the following issue: when I try to get the available source with USERSELECT or GETFIRST, I have an empty list or end of list.
    If I am using Twack 32 or Twain Inspector, I am able to see the source installed on my computer.

    I am building my application use the specification 2.3, the source I should use is however compliant with specification 1.9, but I suppose that there is a backward compatibility.

    I saw in the FAQ that data structure should be aligned on 16 bit, so I configured my visual studio project with /Zp2 flag.

    What I also see is that the select source dialog is not using the same UI button with Twack, but I suppose that Twack has redefined its UI…

    Lastly, I defined my AppIdentity as follow:
    memset(&AppIdentity, 0, sizeof(AppIdentity));

    AppIdentity.Id = 0; // init to 0, but Source Manager will assign real value
    AppIdentity.Version.MajorNum = 1;
    AppIdentity.Version.MinorNum = 0;
    AppIdentity.Version.Language = TWLG_ENGLISH;
    AppIdentity.Version.Country = TWCY_GERMANY;
    AppIdentity.ProtocolMajor = TWON_PROTOCOLMAJOR;
    AppIdentity.ProtocolMinor = TWON_PROTOCOLMINOR;
    AppIdentity.SupportedGroups = DF_APP2 | DG_IMAGE | DG_CONTROL;

    strncpy_s(AppIdentity.Version.Info, “1.0.0”, sizeof(AppIdentity.Version.Info));
    strncpy_s(AppIdentity.Manufacturer, “dots GmbH Berlin”, sizeof(AppIdentity.Manufacturer));
    strncpy_s(AppIdentity.ProductFamily, “dots Scanning Module”, sizeof(AppIdentity.ProductFamily));
    strncpy_s(AppIdentity.ProductName, “dots Scanning Module”, sizeof(AppIdentity.ProductName));

    Thanks,
    Pascal

    May 8, 2015 at 9:36 am #26270 Reply
    PascalGula
    Participant
    • Topics - 1
    • Replies - 1
    • Total Posts - 2

    Hi,

    we found the solution to the problem, and I think it is interesting to share it in case someone stumble upon the same issue…

    The things is that another part of our application needed to add some directory into the search Dll path, leading to a call SetDllDirectory which modify subtlely the search Dll algorithm (suppress the search in current folder).
    The implementation of the Twain Driver we tried to interface used this current folder search feature, so we add to save the added folder, come back to the original algorithm by calling SetDllDirector(NULL), and back to modified one after the scan process…

    Hipe this helped!

    Cheers,
    Pascal

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Missing source in select source dialog
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.