Link to home
Start Free TrialLog in
Avatar of hxb
hxb

asked on

Dialer program

I want to build a dialer program.
The user input the dialer string, and then the PC
check the modem status, and then dial.
The PC can know: the modem is ready? there is
a telephone tone? It dial success?  It is hanged up by remote
modem? the modem have connected to remote modem?

That means I want to dial and display the dialing status.

Please give me suggestion or sample code.
ASKER CERTIFIED SOLUTION
Avatar of vettranger
vettranger

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hxb
hxb

ASKER

Thank for your help.
I have read the help, but still can not know how to
do.

Can you give me a sample code ?
Your Visual Basic CD does have good sample projects for you. Following is the information on what they are named and how to find them :

Sample Applications: Dialer.vbp and VBTerm.vbp

The Dialer.vbp and VBTerm.vbp sample applications which are listed in the Samples directory, demonstrate simple and complex (respectively) programming techniques of the Communications control.

Avatar of hxb

ASKER

Thank for your help.

I have try the VBterm, and it is a good sample.

Now I have a problem, I can know that  the
CD is changed etc.
How can I sure that Dialer process is completed and I
can communicate now?
And how can I know the line is disconnected and must
dial again?
Where can I found more MSCOMM_Events description?


I believe you can use the Oncomm event, and check for a DTR status change. DTR will come up after the connect, and drop shortly before the disconnect.
Avatar of hxb

ASKER

Thank
how can I know if there is a device connected to the port I've assigned or the port is not available? Can you give me some codes on how can i know the port status?