Golang document scanning with TWAIN

900 views
Skip to first unread message

dtr...@gmail.com

unread,
May 11, 2016, 9:43:29 AM5/11/16
to golang-nuts
Dear Gophers I'm an absolute begginner in Go. I do not grasp the CGO completely

I wanted to ask about TWAIN scanning in windows.


Did someone implement support of TWAIN in a Win 386 system to give some help or at least to give some directions in order me
to start with this source code?

P.S. I know one gentleman wrote a SANE bridge for LINUX

Egon

unread,
May 12, 2016, 1:49:10 AM5/12/16
to golang-nuts, dtr...@gmail.com
On Wednesday, 11 May 2016 16:43:29 UTC+3, dtr...@gmail.com wrote:
Dear Gophers I'm an absolute begginner in Go. I do not grasp the CGO completely

I wanted to ask about TWAIN scanning in windows.


Did someone implement support of TWAIN in a Win 386 system to give some help or at least to give some directions in order me
to start with this source code?

Never seen one. 

You won't need to convert the whole .h file, pick the minimal subset.

1. See how http://www.codeproject.com/Articles/296/A-C-Wrapper-for-TWAIN uses it and only convert those.
2. Take a look how Go can use dll files (https://github.com/golang/go/wiki/WindowsDLLs)
3. Take a look at other bindings (should be plenty here https://github.com/golang/go/wiki/projects#windows)

+ Egon

dtr...@gmail.com

unread,
May 13, 2016, 4:53:09 AM5/13/16
to golang-nuts, dtr...@gmail.com
Thank you a lot Egon :)

郑昕

unread,
May 18, 2021, 10:20:50 AM5/18/21
to golang-nuts
hi,Can you give me an example?
Reply all
Reply to author
Forward
0 new messages