I have created a TWAIN framework for C++11 for both application and data source development:
>> https://github.com/xricht17/twpp < < It’s header-only, and as close to the C API provided by twain.h as possible, while abstracting all the hassle with dynamic memory (and more).
I aim to fully support Windows, Linux and Mac OS (tested only on Windows at this time).
I hope you give it a try (capability handling is particularly interesting). 🙂
Hey Martin – very interesting!
I am not writing so much TWAIN code these days, but I look forward to taking a close look at your framework, especially for the DS side.
Hmm, well, first I guess I have to upgrade to VS2015?
Older versions of MSVC sadly don’t support all the C++11 features TWPP uses, especially constexpr.
It might work if you remove all constexpr keywords, though I think it is a waste of time, since MS released VS 2015 Community Edition for free.
Or you can try GCC (MinGW-w64) or CLang.
Let me know (here or on GitHub) if it works for you, and what you (dis)like about the framework.
I’m still not 100% satisfied with DS API, so any feedback is greatly appreciated.