TH> JDBP>ofstream modem("COM3", ios::out|ios::binary) ;
TH> JDBP>modem << "ATZ\r" << flush ;
TH> Thanks, I tried that out. But I get a linker error.
TH> I am compiling for DOS. I am using Borland 3.0 for DOS.
TH> What I would like to see is a simple application demonstrating a
TH> functional, working example of manipulating the modem. I only need to
TH> send AT-dialing commands to automate banking transactions and such.
Though the error is not related to what i'm saying, consider using a
Fossil driver. The com port device pseudofiles com1: through com8: are
quirky under DOS and shouldn't be used for serious purposes. On the
other hand, rewriting the stuff is long, takes serious debugging time
and isn't very good. Using a library is not as stable as using a
driver, especially since some drivers, like BNU, were thoroughly tested
and this one is probably still popular (EVEN THOUGH there were no
official versions since 1989 -- the 1.70 release was really stable).
Using a C library might be easier, though, especially if stability is
not your greatest concern, which is probably the case..
Another solution, which is probably the best suited to your particular
problem: If you're using a telecom package such as Telix or Terminate,
there's an embedded script language. Telix's SALT looks like a
simplified C; Terminate's language looks like a blend of pascal, basic,
and C. I couldn't give more details, because i don't remember much of
it.
matju
--- Terminate 4.00/Pro
---------------
* Origin: The Lost Remains Of SatelliteSoft BBS (1:163/215.42)
|