使用VB 2008 Express读取LPT引脚的状态 [英] Reading status of LPT pins using VB 2008 Express

查看:81
本文介绍了使用VB 2008 Express读取LPT引脚的状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们...

我正在使用WinXP Professional和VB 2008 Express Edition.我需要检查LPT1和LPT3引脚的状态是高还是低.我是VB编程的新手,我需要将LPT端口与VB相连....

请给我一些VB 2008 Express Edition 代码以访问LPT引脚...

非常感谢...

Dear Friends...

I'm using WinXP Professional and VB 2008 Express Edition. I need to check the LPT1 and LPT3 pins for its status high or low. I am new to VB programming and I need to interface LPT ports with VB....

Please get me some VB 2008 Express Edition codes for accessing LPT pins...

Thanks in Advance...

推荐答案

您不能直接访问并行端口-您将需要驱动程序. InpOut32.dll似乎是用于此目的的常见驱动程序.这里有一个描述和示例:

http://www.codeproject.com/KB /vb/PortAccess.aspx


此处有一些很好的参考:

http://www.lvr.com/parport.htm
You can't access the parallel port directly - you will need a driver.  InpOut32.dll seems to be a common driver for this purpose.  There's a description and example here:

http://www.codeproject.com/KB/vb/PortAccess.aspx


There's some good references here:

http://www.lvr.com/parport.htm


这篇关于使用VB 2008 Express读取LPT引脚的状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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