Open GoogleCodeExporter opened 8 years ago
This Issue has been solved.
I found twain_32.dll both in "C:\Windows\System32\" and "C:\Windows\" folder.
But in Windows XP, twain_32.dll is only found in "C:\Windows\" folder.
I add the following code to solve this issue:
[DllImport("Kernel32.dll")]
public static extern IntPtr LoadLibrary(string lpFileName);
public DataSourceManager(Identity applicationId, IWindowsMessageHook
messageHook)
{
// Call LoadLibrary API to load twain_32.dll at first.
twLibHandler = LoadLibrary(Directory.GetParent(Environment.SystemDirectory)
+ "//twain_32.dll");
...
...
}
Original comment by sunhongy...@gmail.com
on 5 Jun 2010 at 5:44
Original issue reported on code.google.com by
sunhongy...@gmail.com
on 25 May 2010 at 8:39