Solved

TWAIN trouble

Posted on 1997-02-15
1
304 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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

771 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

13 Experts available now in Live!

Get 1:1 Help Now