Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

TWAIN trouble

Posted on 1997-02-15
1
Medium Priority
?
326 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 100 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying 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

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…
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…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

718 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