TH>I am trying to send 'AT' commands to a modem. "fopen" doesn't seem to
TH>work. Can someone post a snippit of code demonstrating how to open a
TH>port to COM3: and sending AT commands to it. A com port library is
TH>fine. I don't have any on file.
DM>Depends on your OS. For example, under Linux, OS/2, and likely Win32,
DM>fopen would work. Under DOS, however, you need to either get a
DM>com port library, learn how to use a FOSSIL, or learn how
DM>to deal with the serial port on a low level (via
Actually, I need it to work in W95. I want to use a DOS C++ compiler
even though I have an MS windows version.
--- Maximus/2 3.01
---------------
* Origin: Madman BBS * Chico, California * 530-893-8079 * (1:119/88)
|