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

Question – Get datasource file from twain_64 folder

Forums › TWAIN Classic › Question – Get datasource file from twain_64 folder

  • This topic has 2 replies, 3 voices, and was last updated 5 years, 9 months ago by abbyleem3@yahoo.com.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 23, 2014 at 9:51 pm #22950 Reply
    yilin1105
    Participant
    • Topics - 1
    • Replies - 0
    • Total Posts - 1

    I am a new one for developing a twain project, and now I am working on a Twain project to upgrade from Twain 1.9 to 2.x, the Biggest issue i am having is the twaindsm.dll still look at twain_32 folder for the data source file. I am wondering how I can make the DSM to get DS in twain_64 folder.

    what i have done now is:
    1) load Library TWAINDSM.DLL(successful)
    2) add DF_APP2 into tw_identity.supportgroups field for application
    FApplicationIdentity.SupportedGroups := DF_APP2 or DG_IMAGE or DG_CONTROL;
    3) check df_dsm2 and call DAT_ENTRYPOINT (successful)
    if ((FApplicationIdentity.SupportedGroups and DF_DSM2)<>0) then
    begin
    FEntryPoint.size:=sizeof(TW_ENTRYPOINT);
    Result := DSM_Entry(@FApplicationIdentity, pDest, DG, DAT, MSG, pData);

    end;
    4) check if FEntryPoint.DSM_Entry is assigned, if yes, then change DSM_ENTRY to FEntryPoint.DSM_Entry

    I ran the codes, but DSM still only get the DS in twain_32 folder, i do not know what else i should do.

    Could anyone please provide me some instructions?

    Thanks a lot.

    June 3, 2014 at 3:55 pm #26145 Reply
    MSM
    Participant
    • Topics - 0
    • Replies - 29
    • Total Posts - 29

    On 64 bit machine:
    32 bit DSM , located in syswow64, checks for 32 bit DS in twain_32 directory
    64 bit DSM , located in
    system32, checks for 64 bit DS in twain_64 directory

    On 32 bit machine:
    32 bit DSM , located in system32, checks for 32 bit DS in twain_32 directory

    July 9, 2015 at 3:08 am #26146 Reply
    abbyleem3@yahoo.com
    Participant
    • Topics - 0
    • Replies - 9
    • Total Posts - 9

    Here’s sample date source.
    http://sourceforge.net/projects/twain-samples/files/TWAIN%202%20Sample%20Data%20Source/
    Hope you can find the code you need.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Question – Get datasource file from twain_64 folder
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

  • TWAIN for dental imaging integration
  • 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.