Click to See Complete Forum and Search --> : Read/Send bytes/words through hardware ports


Atique Ahmad
December 26th, 1999, 11:17 PM
I have been using QBasic's INP port% and OUT port%, num% commands to read and send bytes through hardware ports. Now, these are not available in Visual Basic. Can anyone help me with this. I have to use some of QBasic subs in Visual Basic.
Somebody told me to use the C functions: inport(), outport(), and make a windows DLL. I tried it using Borland C 3.1. it worked fine in VB 3, but not with 32-bit versions of VB. Now what can I do to tackle this problem.
Please note that the ports are not the common serial or parallel ports.

Ruth Glushkin
December 27th, 1999, 12:55 AM
Your problem is that you can't call 16-bit dll from 32-bit application of VB. If you need 32-bit dll,
I have ioport.dll, which performs exactly you want. Just e-mail me, and I'll send it for you.