| Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free! |
Visual basic: Read from an IO port
|
Original Message
|
Name: eran_benjamin
Date: May 10, 2005 at 08:54:51 Pacific
Subject: Visual basic: Read from an IO portOS: Window98CPU/Ram: AMD2800 |
Comment: Hi, I need to read from a device that would be connected to an IO port (not the serial port). I have been told that the command in C is 'imp' (import), and that I should treat the IO port as I read from the memory. I am looking for the parallel comand in VB. Furthermore I have to sample the port every mili second. Questions: 1. Please let me know the way to read from the io port (the address is something like - 0x3fff...) 2. Do you know how can I control the frequency in which I read from the IO port? thanks ahead, Benjamin.
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: StuartS
Date: May 10, 2005 at 10:51:40 Pacific
|
Reply: (edit)You cant. There are no port addressing facilities in VB. The only thing you can do is to write an ActiveX DLL in C++ and call that from VB. Stuart
Report Offensive Follow Up For Removal
|
|
Response Number 2
|
Name: egkenny
Date: May 10, 2005 at 11:13:02 Pacific
|
Reply: (edit)Check out WinIo. You can use the DLL with VB or VC++. http://www.internals.com/ Here are sample programs I have written in Visual Basic 6.0 and Visual C++ 6.0: https://home.comcast.net/~egkenny/files/WinIO_Examples.zip
Report Offensive Follow Up For Removal
|

Post Locked
This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
Go to Programming Forum Home