I/O via serial (COM) ports

G

Gordon Nicholas

Anybody know how you can change the standard I/O so that you can I/O via COM
ports??

Also in C++ if thats possible?? (maybe easier)

TIA

(e-mail address removed)
 
J

Joona I Palaste

Gordon Nicholas said:
Anybody know how you can change the standard I/O so that you can I/O via COM
ports??

Not possible in standard C.
Also in C++ if thats possible?? (maybe easier)

Not possible in standard C++ either.

--
/-- Joona Palaste ([email protected]) ---------------------------\
| Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
| http://www.helsinki.fi/~palaste W++ B OP+ |
\----------------------------------------- Finland rules! ------------/
"Keep shooting, sooner or later you're bound to hit something."
- Misfire
 
K

Kevin Easton

Gordon Nicholas said:
Anybody know how you can change the standard I/O so that you can I/O via COM
ports??

The filename passed to fopen() is interpreted in an
implementation-defined way - some implementations will interpret certain
strings as a request to open a COM port. To find out whether your
implementation can do this, and if so, which strings to use, ask in a
newsgroup dedicated to your platform.

- Kevin.
 
C

Chris Doran

Gordon Nicholas said:
Anybody know how you can change the standard I/O so that you can I/O via COM
ports??

As others have said, you must use platform-specific functions. A
Google search for "serial" on comp.os.ms-windows.programmer.win32
should find several posts answering this FAQ; some of them by me.

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top