- This topic has 2 replies, 3 voices, and was last updated 5 years, 9 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
Forums › TWAIN Classic › Question – Get datasource file from twain_64 folder
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.
On 64 bit machine:
32 bit DSM , located in
64 bit DSM , located in
On 32 bit machine:
32 bit DSM , located in
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.