How can I in C, write to the COM1/2 ports?
Is there a function? or something?
Can I do it with _outp(), if so, what is the address of the COM1 and COM2 ports?
Thanks.
Printable View
How can I in C, write to the COM1/2 ports?
Is there a function? or something?
Can I do it with _outp(), if so, what is the address of the COM1 and COM2 ports?
Thanks.
I'm using the Borland 5.5 C++ compiler, and the win98/2000/XP OS.
Thanks.
I know ms-dos used some special filenames like lpt1 as fake filenames for printers. How involved was that? Was that just a ms-dos shell thing?
Its because its treated as a file, lpt1 and the COM ports
www.robbayer.com has a "tutorial" on connecting to serial ports (connecting to COM1, etc... works with this).