Solved

TWAIN trouble

Posted on 1997-02-15
1
305 Views
Last Modified: 2013-12-04
Hi,

Does any of you have any experience with EZTWAIN. I'm encountering the following problem.

The function 'LoadLibrary( "c:\\windows\\twain.dll" ) return 0 (zero) and the library is not loaded. Other (16 bit) programs (like IPhoto Plus) have no problem 'aquiring' the TWAIN library (in this case with SNAPPY).

I'm using EZTWAIN from ftp.twain.org but when I debug the source. The LoadLibrary causes the problems. All the files are in the right directories, but something seems to go wrong. Any suggestions.

(I'm still developing 16 bit programs because the majority of our customers are still using windows 3.11).

System:
      Pentium       150 Mhz
      Memory      32 Mb
      
Operating System:
      Windows 95

Compiler:
      Borland C++ v4.5 and v5.01

Paul Sinnema :-)
0
Comment
Question by:Paul Sinnema
1 Comment
 
LVL 1

Accepted Solution

by:
donc earned 50 total points
ID: 1298765
Run the debug kernel.  When I worked at MS on Win 3.1 KRNL386, I added lots of debug_outs to let you know why a load fails.

Error 0 means "something bad happened", typically out of memory, but it could also be a corrupt file, or can't find a DLL dependency, etc.

Dump out the dependency list of your copy of TWAIN.DLL, it may depend on other helper DLLs in other directories.  (I think Borland has a nice dump utility.)

Try loading another DLL in the same directory, just to make sure you don't have problems in general loading DLLs.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Method 'OpenReport' of the object Docmd failed 7 28
C#: need to import an entire CSV file 4 51
Visual Studio 2015 locks debug executable 9 134
dialer.exe 4 58
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now