Developing application to communicate with Scanner using Windows image Acquisition (WIA)

Asked

Viewed 77 times

1

I’m trying to develop an application that communicates with a scanner. In my research, I found in the Microsoft documentation a Service called Windows image Acquisition that allows this communication of an application with a Scanner:

https://docs.microsoft.com/en-us/windows/desktop/wia/-wia-startpage

In this documentation is a tutorial on how to communicate with Scanner via C encoding:

https://docs.microsoft.com/en-us/windows/desktop/wia/-wia-creating-a-wia-device-manager

As I don’t have much knowledge in C I tried to give a Ctrl C Ctrl V, of the code in my IDE code Blocks and tried to complilar to test, but always gives the same error: error: Unknown type name 'HRESULT' I have tried to correct the error seeking solutions on the web, but without success. Actually I’m kind of lost, I don’t know much about the concept of programming and I don’t know if some configuration is missing or something similar for the code to run.

Would someone please help me? Give me a horizon where I start? or how do I run this code?

Thanks in advance :)

  • the example you’re looking to use seems to be fairly advanced, and since you yourself say you don’t have much knowledge in C so I don’t think you’ll be able to make it work; you should probably look for specific examples for the scanner you’re using

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.