Home › Forums › TWAIN Classic › Question – Get datasource file from twain_64 folder
- This topic has 2 replies, 3 voices, and was last updated 8 years, 8 months ago by abbyleem3@yahoo.com.
- AuthorPosts
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_EntryI 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.
On 64 bit machine:
32 bit DSM , located insyswow64, checks for 32 bit DS in twain_32 directory
64 bit DSM , located insystem32, checks for 64 bit DS in twain_64 directory On 32 bit machine:
32 bit DSM , located insystem32, checks for 32 bit DS in twain_32 directory 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.- AuthorPosts