I am trieing to use the inp function to get readings from ports. The only problem is that i do not know what the port numbers are assigned to and when I have tried quickbasic shuts down and says something like "Windows cannot open COM4". What does that mean? How can i find the port numbers?
Comments
:
In most cases you can assume, that the port numbers are the following:
COM1 - &H3F8
COM2 - &H2F8
COM3 - &H3E8
COM4 - &H2E8
LPT1 - &H378
LPT2 - &H278
Windows cannot open COM4, because most PCs only have one or two COM ports. You will probably only be interested in COM1.
If this didnt help, just ask more questions;-)
: :
:
: In most cases you can assume, that the port numbers are the following:
:
: COM1 - &H3F8
: COM2 - &H2F8
: COM3 - &H3E8
: COM4 - &H2E8
:
: LPT1 - &H378
: LPT2 - &H278
:
: Windows cannot open COM4, because most PCs only have one or two COM ports. You will probably only be interested in COM1.
: If this didnt help, just ask more questions;-)
:
Some times winXP won't allow you to use the ports.
: : :
: :
: : In most cases you can assume, that the port numbers are the following:
: :
: : COM1 - &H3F8
: : COM2 - &H2F8
: : COM3 - &H3E8
: : COM4 - &H2E8
: :
: : LPT1 - &H378
: : LPT2 - &H278
: :
: : Windows cannot open COM4, because most PCs only have one or two COM ports. You will probably only be interested in COM1.
: : If this didnt help, just ask more questions;-)
: :
: Some times winXP won't allow you to use the ports.
:
Just wanted to tell that the keyboard is INP(96) :-D
Its great for games! I discovered that INP in a program by IDK and then changed most of my programs ;-)
But its not good for text input as you would get key input too often. INKEY$ just returns something a definied times per second.
[hr][hr]
Don't write pH, write Ph!