Hi all, I'm new here.
I've a problem with a simple command line application under Win XP that
should call a telephone number by modem.
I found on this ML a partial solution to my problem and it'is:
ser:=TBlockserial.Create;
try
ser.RaiseExcept:=True;
ser.Connect(port);
ser.Config(9600,8,'N',SB1,false,false);
Write('Is there a modem? ');
writeln(ser.ATCommand('AT'));
if (ser.LastError <> 0) or (not ser.ATResult) then
Exit;
Write('Open the port: ' + port +' composing number ' + number);
Writeln(ser.ATConnect('ATDT' +number));
if (ser.LastError <> 0) or (not ser.ATResult) then
Exit;
finally
ser.Free;
end;
How can I get AT error message from ATConnect (for example: BUSY, NO
DIAL TONE and so on) to terminate application?
Thanks in advance,
Pasquale.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public