 |
VB没有提供直接读写I/O口的方法,只能借助其他语言来编写DLL,然后在VB中调用。建议使用NTPort Library(http://china.zealsoft.com/cn/ntport/)。NTPort Library 允许你的Win32程序实时直接访问PC机的I/O端口而无须使用Windows Drivers Development Kit(DDK) 或其他工具。NTPort Library支持Windows 95/98/ME/NT/2000/XP/Server 2003。NTPort Library也是BASIC的INP或OUT命令的替代品。NTPort Library还可以获得LPT端口的基地址。软件中包括Visual Basic、Visual Basic.NET、Visual C++、Visual C#、Delphi和Borland C++ Builder和Wise Installation System示例,您可以从网站下载InstallShield、PowerBASIC、Visual Fortran、Borland C++和Matlab的示例。
此问题由李海回答。
附加关键字:编程, 源程序, programming, source code, Visual Basic, VB, DDK与硬件设备, hardware, ddk, vtoolsd, driver studio, winrt。
|