并行端口C#VS 2008 [英] Parallel Port C# VS 2008
问题描述
我找到了解决方案,应用程序需要管理员权限才能运行
我想通过并行端口与电路通信.
首先,我只想打开/关闭LED,稍后将实现原始电路.
我在Google上搜索并发现了很多文章和博客,它们讲述了inpout32.dll的使用.
我正在使用Windows 7 VS 2008
请不要发布指向前三页带有查询字符串并行端口C#"的文章的链接,因为我已经经历了所有这些,而且它们的源代码都无法将位发送到并行端口.
由于Windows 7也可能存在一些问题.
如果有人知道帮我
i got the solution, application needs administrator rights to be run
I want to communicate to my circuit via parallel port.
First I just want to ON/OFF LED, later original circuit will be implemented.
I googled and found so many articles and blogs telling use of inpout32.dll.
I am using Windows 7 VS 2008
Please don''t post links to the articles which appear on first 3 pages with query string ''Parallel Port C#'' because I have gone through all these and none of their source code was able to send bits to parallel port.
There might be some issue because of windows 7 also.
If anyone knows help me out
推荐答案
检查一下:
http://logix4u.net/Inpout32.dll_Discussion/InpOut32_and_64_bit_Windows_7.html [
Check this out:
http://logix4u.net/Inpout32.dll_Discussion/InpOut32_and_64_bit_Windows_7.html[^]
You may need to run your application in administrator mode ("at least once" according to the link).
这是CodeProject文章,显示了如何解决类似的问题:
未经审查的I/O端口-1-通过并行端口控制LED(发光二极管) [ ^ ]
未经审查的I/O端口第2部分-使用并行端口控制LCD(液晶显示器)和VFD(真空荧光显示器) [ ^ ]
另请参见:
使用PC控制电器 [通过并行端口控制软驱步进电机 [
This is the CodeProject article showing how to solve a similar problem:
I/O Ports Uncensored - 1 - Controlling LEDs (Light Emiting Diodes) with Parallel Port[^]
I/O Ports Uncensored Part 2 - Controlling LCDs (Liquid Crystal Displays) and VFDs (Vacuum Fluorescent Displays) with Parallel Port[^]
See also:
Control Electrical Appliances using PC[^]
Controlling Floppy Drive Stepper Motor via Parallel Port[^]
—SA
这篇关于并行端口C#VS 2008的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!