
MSComm-hangs if no answer?!?
Hi Joanne,
MSComm has no idea whether or not the other computer modem has answered.
So, the "hang" that you describe probably has some other explanation (read,
a code problem). Without knowing more, I have a hard time saying for sure.
I do have several working examples in my book (see below) that dial,
connect, and send and receive data. If a connection cannot be established,
the modem sends outputs a reply to the dial command, "NO CARRIER" & vbCrLf.
You code probably needs to detect this response (and others), and to monitor
CD (using CDHolding).
--
Richard Grier (Microsoft Developer MVP)
Hard & Software
12962 West Louisiana Avenue
Lakewood, CO 80228
303-986-2179 (voice)
303-986-3143 (fax)
Author of Visual Basic Programmer's Guide to Serial Communications, 2nd
Edition (355 pages).
For information look on my homepage at http://www.hardandsoftware.net.
Use the Books link to order. For faster service contact the publisher at
http://www.mabry.com.