- Topics - 9
- Replies - 583
- Total Posts - 592
reading thru the spec (again)(again) and this caught my eye on pg 110 of the twain2d.pdf:
Naming and Location
The DLL’s file name must end with a .DS extension. The Source Manager recursively searches
for your Source in the TWAIN sub-directory of the Windows directory (typically
C:WINDOWS on Windows 95/98, or C:WINNT on Windows NT). To reduce the chance for
naming collisions, each Source should create a sub-directory beneath TWAIN, giving it a name
relevant to their product. The Source DLLs are placed there. Supporting files may be placed
there as well, but since this is a system directory which may only be modifiable by the System
Administrator, Sources must not write any information into this directory after the installation.
So this makes me wonder how clever the source manager is. Does it recursively search in the twain sub-directory (hardcoded to look under %windir% first) or is it maybe slightly less clever just searching recursively ‘twain_32 ‘ from the current directory…
Seems like this would be easy to test by copying %windir%twain_32.dll to the app directory, adding a subdirectory to the app directory named twain_32 and putting you ds in there and using loadlibrary pointing to the application specific twain_32.dll.