|
-
December 27th, 1999, 12:17 AM
#1
Read/Send bytes/words through hardware ports
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.
-
December 27th, 1999, 01:55 AM
#2
Re: Read/Send bytes/words through hardware ports
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|