Tattakashi123 / t

Automatically exported from code.google.com/p/twaindotnet
0 stars 0 forks source link

TWUNK_16 error on Windows 7 64-bit #43

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
how do you add it to datasourcemanagement constructor> where do you find it?

Original comment by amerikic...@aol.com on 26 Nov 2013 at 8:06