What steps will reproduce the problem?
1. Load the 2011-12-22 version of TwainDotNet on a Windows 7 64-bit machine
(with no TWAIN devices installed).
2. Run TestApp.
What is the expected output? What do you see instead?
MessageBox Title: Unsupported 16-Bit Application
Message: The program or feature "\??\C:\Windows\Twunk_16.exe" cannot start or
run due to incompatibility with 64-bit versions of Windows. Please contact the
software vendor to ask if a 64-bit Windows compatible version if available.
What version of the product are you using? On what operating system?
Windows 7 Professional 64-bit
Please provide any additional information below.
I fixed this by adding the following lines to the DataSourceManager constructor:
string twainLib =
Path.Combine(Directory.GetParent(Environment.SystemDirectory).FullName,
"twain_32.dll");
if (File.Exists(twainLib))
{
LoadLibrary(twainLib);
}
Original issue reported on code.google.com by mooz...@gmail.com on 5 Jun 2012 at 7:49
Original issue reported on code.google.com by
mooz...@gmail.com
on 5 Jun 2012 at 7:49