使用Inpout32.dll从并行端口读取 [英] Reading from Parallel Port using Inpout32.dll

查看:820
本文介绍了使用Inpout32.dll从并行端口读取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从以下链接下载了源代码,但是在执行时却给出了SHE异常.我现在该怎么办
使用Inpout32.dll从并行端口读取 [ ^ ]

I have downloaded the source code from the following link but it gives SHE exception on execution.What should i do now
Reading from Parallel Port using Inpout32.dll[^]

推荐答案

不要将其发布在快速解答"下-如果您从某篇文章中获得了代码,那么该文章的底部会出现一个新消息"按钮,导致将电子邮件发送给作者.然后会通知他们您希望与他们交谈.
将其发布到此处依赖于他们的"drop by"并意识到它是针对他们的.
Don''t post this under Quick Answers - if you got the code from an article, then there is a "new message" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to speak to them.
Posting this here relies on them "dropping by" and realising it is for them.


SEHException[^]s stem from unmanaged code that was called from your code. It''s hard to tell what exactly caused that. First step would be to investigate the SEHException.ErrorCode property. That would be a HRESULT that can be investigated further.

2nd approach: Debug your code. What line of code throws the exception?


这篇关于使用Inpout32.dll从并行端口读取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆