0

我正在开发一个扫描应用程序,并且我想仅在我的/任何扫描仪可用时启用“扫描”按钮。

我尝试使用GdPicture来实现这一点,但没有任何成功(顺便说一句。它的库真的很差,不要使用它)。我还尝试使用Atalasoft 的 TWAIN和较低级别的TWAIN 库(感谢那篇文章我找到了)来获得某种类似的事件。没有工作。

我也有一个想法来检测连接到计算机的新设备,而不是重新扫描 TWAIN 设备,但也许你们中的任何人都知道更好的解决方案。有任何想法吗?

4

1 回答 1

0

You may need to write a wrapper yourself for a scanner. If the above mentioned libraries have no API to tell the scanner's status, you can try to connect to the scanner, if you get connected it means the scanner is up. I think they provide connection API for a scanner.

于 2012-06-04T15:51:17.160 回答