WINDOWS WIA 驱动开发 0x80210015,0x80210016错误
来源:互联网 发布:移动5g网络 编辑:程序博客网 时间:2024/06/05 20:44
WIA是基于COM技术的,直接引用COM的DLL即可。
我问过商家,现在WIA是可以通过TWAIN进行驱动的。但是代码是不同的。
<span style="font-size:12px;"> ImageFile imageFile = null; CommonDialogClass cdc = new WIA.CommonDialogClass(); try { imageFile = cdc.ShowAcquireImage(WIA.WiaDeviceType.ScannerDeviceType, WIA.WiaImageIntent.TextIntent, WIA.WiaImageBias.MaximizeQuality, "{00000000-0000-0000-0000-000000000000}", true, true, false); } catch (System.Runtime.InteropServices.COMException) { imageFile = null; } if (imageFile != null) { string fileName = Application.ExecutablePath + @"cache.bmp"; imageFile.SaveFile(fileName); using (FileStream stream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read)) { pictureBox1.Image = Image.FromStream(stream); } File.Delete(fileName); }</span>
就是这样,但是执行出错。异常来自 HRESULT:0x80210015
详细的错误代码如下:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms630183(v=vs.85).aspx
0 0
- WINDOWS WIA 驱动开发 0x80210015,0x80210016错误
- WIA扫描仪驱动
- Windows驱动开发蓝屏(代码:0x0000007f)
- Windows Image Acquisition (WIA) 的用法
- windows XP下驱动开发环境设置(DDK+VC6.0)
- 驱动开发利器Microsoft Windows Driver Kit 7.1.0下载
- windows XP下驱动开发环境设置(DDK+VC6.0)
- 驱动开发利器Microsoft Windows Driver Kit 7.1.0下载
- windows XP下驱动开发环境设置(DDK+VC6.0)
- windows驱动在vs6.0中的编译错误:Compiler version not supported by Windows DDK!
- Windows CE驱动开发
- windows 驱动开发详解
- Windows 7 驱动开发
- Windows驱动开发模型
- Windows驱动开发小结
- windows驱动开发笔记
- Windows驱动开发
- Windows 驱动开发随想
- uva(10344)
- [HDOJ 4964] Emmet [模拟]
- UTF-8编码规则(转)
- Axis2创建WebService实例
- 我整理的IDEA 快捷键
- WINDOWS WIA 驱动开发 0x80210015,0x80210016错误
- oracle exchange partition 测试
- Spring Data JPA初使用
- Android.mk内的变量定义
- 15个最好的 HTML5 视频播放器
- 黑马程序员--苦逼的社会、彪悍的人生————纪念我在黑马的四个月
- UIView animation常用用法
- Android中使用Animation实现控件的动画效果以及Interpolator和AnimationListener的使用
- nvarchar和varchar的区别