Solved

TWAIN trouble

Posted on 1997-02-15
1
311 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
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 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…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

756 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