C++ and TWAIN

xDUCK

Junior Member
Aug 19, 2004
2
0
0
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! :(

So far I have tried http://www.codeguru.com/Cpp/G-M/multimedia/twain/article.php/c1585/ and 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 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