Solved

TWAIN trouble

Posted on 1997-02-15
1
313 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…

734 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