Click to See Complete Forum and Search --> : C++ and TWAIN - DESPERATE!


xDUCK
08-19-2004, 09:19 PM
Hey everyone,

I'm trying to write a program (VC++) to grab the current image from a TWAIN source (webcam) and supply a memory address for it (for manipulation with an image library that I have working)... And I'm going out of my mind! :eek: :mad:

So far I have tried C++ TWAIN Wrapper (http://www.codeguru.com/Cpp/G-M/multimedia/twain/article.php/c1585/) and DTWAIN (http://www.dynasoft.com/dtwain_overview.html). NEITHER WORKS! :mad: (they won't compile properly, no matter WHAT I do).

I am left with two options:
1) Learn the TWAIN specification (:eek:) and make my own wrapper that works! :p
2) Figure out how to get the current ones working (preferably the first one, since DTWAIN has an annoying shareware popup :p).

Can somebody PLEASE post either a working VC++ project using one of these libraries, or at least some simple code that WORKS? No matter what I try I'm getting errors left and right.

I'd be eternally in your debt!

Thanks,
Mike