WIA、Vista 和 VB6。这段代码有效吗?
基本上,这里的限制是我必须使用 WIA,因为我试图让我的扫描仪软件在 Windows 7 和 Vista 中工作。如果我能在 VB6 中做到这一点,那就更好了(真的更好)。 现在我已经编译了这段代码并完成了所有内容,但是当我运行它时,我收到错误“没有所选类型的 WIA 设备可用。”我开始怀疑我的扫描仪与 WIA 不兼容。
谁能确认这段代码应该有效吗? (需要与任何 WIA 设备配合使用,而不仅仅是扫描仪)
Dim WIADia As WIA.CommonDialog
Dim Scan As WIA.DeviceManager
Set WIADia = New WIA.CommonDialog
Set Scan = WIADia.ShowSelectDevice(WIA.WiaDeviceType.UnspecifiedDeviceType, True, False)
WIADia.ShowAcquisitionWizard (Scan)
谢谢!
Basically the constraints here are that i must use WIA because i am trying to get my scanner software to work in Windows 7 and Vista. It would be preferable (like really preferable) if i could do this in VB6.
Now this code i have compiles and everything, however when i run it i get the error "No WIA device of the selected type is available." I'm beginning to suspect that my scanner is not WIA compatible.
Could anyone confirm that this code should work? (needs to work with any WIA device not just scanners)
Dim WIADia As WIA.CommonDialog
Dim Scan As WIA.DeviceManager
Set WIADia = New WIA.CommonDialog
Set Scan = WIADia.ShowSelectDevice(WIA.WiaDeviceType.UnspecifiedDeviceType, True, False)
WIADia.ShowAcquisitionWizard (Scan)
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)