FAQ

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.

TWAIN has a huge .h file (
http://twain.org/docs/530fe0db85f7511c51000500/twain.zip )
that can be found at
http://twain.org/scanner-application-developers/specification-and-tools.html

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

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 3 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedMay 11, '16 at 1:43p
activeMay 13, '16 at 8:52a
posts3
users2
websitegolang.org

2 users in discussion

Dtrehas: 2 posts Egon: 1 post

People

Translate

site design / logo © 2021 Grokbase